diff options
author | Linus Nordberg <linus@nordu.net> | 2016-04-18 15:02:38 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2016-04-18 15:02:38 +0200 |
commit | b8aa87c056a3e0fc1771bd4145bbbf1be1fca4da (patch) | |
tree | 8ff6558c8960856b5f10404a01ec5460df5e32b1 /udp.c | |
parent | b159585bb9057bc441fd44ecf2d97b3f80782927 (diff) |
Stomp less on other threads memory.stompless
See RADSECPROXY-64.
Diffstat (limited to 'udp.c')
-rw-r--r-- | udp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -258,11 +258,11 @@ int clientradputudp(struct server *server, unsigned char *rad) { void *udpclientrd(void *arg) { struct server *server; unsigned char *buf; - int *s = (int *)arg; + int s = (int) arg; for (;;) { server = NULL; - buf = radudpget(*s, NULL, &server, NULL); + buf = radudpget(s, NULL, &server, NULL); replyh(server, buf); } } @@ -348,10 +348,10 @@ void initextraudp() { } if (client4_sock >= 0) - if (pthread_create(&cl4th, &pthread_attr, udpclientrd, (void *)&client4_sock)) + if (pthread_create(&cl4th, &pthread_attr, udpclientrd, (void *) client4_sock)) debugx(1, DBG_ERR, "pthread_create failed"); if (client6_sock >= 0) - if (pthread_create(&cl6th, &pthread_attr, udpclientrd, (void *)&client6_sock)) + if (pthread_create(&cl6th, &pthread_attr, udpclientrd, (void *) client6_sock)) debugx(1, DBG_ERR, "pthread_create failed"); if (find_clconf_type(handle, NULL)) { |