Explorar o código

Adjust fields in sockname_t

Bryan Drewery %!s(int64=10) %!d(string=hai) anos
pai
achega
2dec7f49e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/socket.h

+ 1 - 1
src/socket.h

@@ -14,8 +14,8 @@ int get_addr(const char *, my_addr_t *);
 
 /* can be static if ever combined with net.h or a more integrated 1.9 is used ... */
 typedef struct {
-        int len;
         int family;
+        socklen_t len;
         union {
                 struct sockaddr addr;
                 struct sockaddr_in ipv4;