@@ -128,11 +128,11 @@ /** * @struct OFSocketAddress OFSocket.h ObjFW/OFSocket.h * * @brief A struct which represents a host / port pair for a socket. */ -struct OF_BOXABLE OFSocketAddress { +typedef struct OF_BOXABLE { /* * Even though struct sockaddr contains the family, we need to use our * own family, as we need to support storing an IPv6 address on systems * that don't support IPv6. These may not have AF_INET6 defined and we * can't just define it, as the value is system-dependent and might @@ -144,12 +144,11 @@ struct sockaddr_in in; struct sockaddr_in6 in6; struct sockaddr_ipx ipx; } sockaddr; socklen_t length; -}; -typedef struct OFSocketAddress OFSocketAddress; +} OFSocketAddress; #ifdef __cplusplus extern "C" { #endif /**