summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2008-09-24 09:54:52 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-09-24 09:54:52 +0000
commit0b51bba22866942987ba5a0e44fd0bc98f4a355b (patch)
tree4ac474c4ad33f2f5abd5a9e7dae29908ea34fa2a
parent4ad3361b1b47568ce849fb0458709ee511713c80 (diff)
hopefully removed some warnings
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@402 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--tcp.c4
-rw-r--r--tls.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tcp.c b/tcp.c
index 62c335e..ac10d48 100644
--- a/tcp.c
+++ b/tcp.c
@@ -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);
diff --git a/tls.c b/tls.c
index 5014b46..111e198 100644
--- a/tls.c
+++ b/tls.c
@@ -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);