hopefully removed some warnings
[libradsec.git] / radsecproxy.c
index af94af3..c9980e4 100644 (file)
@@ -2511,7 +2511,7 @@ void tlsserverrd(struct client *client) {
 void *tlsservernew(void *arg) {
     int s;
     struct sockaddr_storage from;
-    size_t fromlen = sizeof(from);
+    socklen_t fromlen = sizeof(from);
     struct clsrvconf *conf;
     struct list_node *cur = NULL;
     SSL *ssl = NULL;
@@ -2582,7 +2582,7 @@ int tlslistener() {
     pthread_t tlsserverth;
     int s, snew;
     struct sockaddr_storage from;
-    size_t fromlen = sizeof(from);
+    socklen_t fromlen = sizeof(from);
     struct clsrvconf *listenres;
 
     listenres = resolve_hostport('T', options.listentcp, DEFAULT_TLS_PORT);