aboutsummaryrefslogtreecommitdiffstats
path: root/include/socket.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-26 22:24:16 +0000
committerGravatar Sadie Powell2026-03-26 22:24:16 +0000
commitcd2d667ca7d3d31dbcf1f3bf0717b744b11ec776 (patch)
tree2d510e98b89d9fb7a74b7ed44dede89ef5d3b50e /include/socket.h
parentMerge branch 'insp4' into master. (diff)
Switch typedefs to using statements.
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/socket.h b/include/socket.h
index 332bd6776..e869852b1 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -34,8 +34,8 @@
# include <sys/un.h>
#else
# include <afunix.h>
-typedef USHORT in_port_t;
-typedef ADDRESS_FAMILY sa_family_t;
+using in_port_t = USHORT;
+using sa_family_t = ADDRESS_FAMILY;
#endif
#include <cerrno>
@@ -185,7 +185,7 @@ struct CoreExport FailedPort final
};
/** A list of failed port bindings, used for informational purposes on startup */
-typedef std::vector<FailedPort> FailedPortList;
+using FailedPortList = std::vector<FailedPort>;
#include "socketengine.h"
@@ -210,7 +210,7 @@ public:
}
};
- typedef std::array<IOHookProvRef, 2> IOHookProvList;
+ using IOHookProvList = std::array<IOHookProvRef, 2>;
/** IOHook providers for handling connections on this socket,
* may be empty.