diff options
| author | 2026-03-26 22:24:16 +0000 | |
|---|---|---|
| committer | 2026-03-26 22:24:16 +0000 | |
| commit | cd2d667ca7d3d31dbcf1f3bf0717b744b11ec776 (patch) | |
| tree | 2d510e98b89d9fb7a74b7ed44dede89ef5d3b50e /include/socket.h | |
| parent | Merge branch 'insp4' into master. (diff) | |
Switch typedefs to using statements.
Diffstat (limited to 'include/socket.h')
| -rw-r--r-- | include/socket.h | 8 |
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. |
