Showing
2 changed files
with
3 additions
and
3 deletions
@@ -37,7 +37,7 @@ CLASS(Sock) { | @@ -37,7 +37,7 @@ CLASS(Sock) { | ||
37 | int handle; | 37 | int handle; |
38 | }; | 38 | }; |
39 | 39 | ||
40 | -void socketConnect(Sock this, const char * addr); | 40 | +void socketConnect(Sock this, const char * addr, char (*)[16]); |
41 | void socketListen(Sock this, int backlog); | 41 | void socketListen(Sock this, int backlog); |
42 | Sock socketAccept(Sock this, char (*remoteAddr)[16]); | 42 | Sock socketAccept(Sock this, char (*remoteAddr)[16]); |
43 | 43 |
@@ -45,10 +45,10 @@ socketConnect(Sock this, const char * addr, char (*remoteAddr)[16]) | @@ -45,10 +45,10 @@ socketConnect(Sock this, const char * addr, char (*remoteAddr)[16]) | ||
45 | strerror(errno)); | 45 | strerror(errno)); |
46 | exit(EXIT_FAILURE); | 46 | exit(EXIT_FAILURE); |
47 | } else { | 47 | } else { |
48 | - strcpy(*remoteAddr, inet_ntoa((sock->addr).sin_addr)); | 48 | + strcpy(*remoteAddr, inet_ntoa((this->addr).sin_addr)); |
49 | 49 | ||
50 | loggerLog(this->log, LOGGER_INFO, | 50 | loggerLog(this->log, LOGGER_INFO, |
51 | - "handling connection %s\n", inet_ntoa((sock->addr).sin_addr)); | 51 | + "handling connection %s\n", inet_ntoa((this->addr).sin_addr)); |
52 | } | 52 | } |
53 | } | 53 | } |
54 | 54 |
Please
register
or
login
to post a comment