diff options
-rw-r--r-- | tcp.c | 4 | ||||
-rw-r--r-- | tls.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -263,7 +263,7 @@ void tcpserverrd(struct client *client) { void *tcpservernew(void *arg) { int s; struct sockaddr_storage from; - size_t fromlen = sizeof(from); + socklen_t fromlen = sizeof(from); struct clsrvconf *conf; struct client *client; @@ -297,7 +297,7 @@ void *tcplistener(void *arg) { pthread_t tcpserverth; int s, *sp = (int *)arg; struct sockaddr_storage from; - size_t fromlen = sizeof(from); + socklen_t fromlen = sizeof(from); listen(*sp, 0); @@ -324,7 +324,7 @@ void tlsserverrd(struct client *client) { void *tlsservernew(void *arg) { int s; struct sockaddr_storage from; - size_t fromlen = sizeof(from); + socklent_t fromlen = sizeof(from); struct clsrvconf *conf; struct list_node *cur = NULL; SSL *ssl = NULL; @@ -395,7 +395,7 @@ void *tlslistener(void *arg) { pthread_t tlsserverth; int s, *sp = (int *)arg; struct sockaddr_storage from; - size_t fromlen = sizeof(from); + socklen_t fromlen = sizeof(from); listen(*sp, 0); |