libsoup: moved to github
[openwrt.org/packages.git] / net / 100-missing-return.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--- a/dtls.c
+++ b/dtls.c
@@ -523,6 +523,7 @@ void *udpdtlsserverrd(void *arg) {
        free(params);
        cacheexpire(sessioncache, &lastexpiry);
     }
+    return NULL;
 }
 
 int dtlsconnect(struct server *server, struct timeval *when, int timeout, char *text) {
@@ -642,6 +643,7 @@ void *udpdtlsclientrd(void *arg) {
        if (udp2bio(s, conf->servers->rbios, cnt))
            debug(DBG_DBG, "radudpget: got DTLS in UDP from %s", addr2string((struct sockaddr *)&from));
     }
+    return NULL;
 }
 
 void *dtlsclientrd(void *arg) {
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -3203,6 +3203,8 @@ void *sighandler(void *arg) {
             debug(DBG_WARN, "sighandler: ignoring signal %d", sig);
         }
     }
+
+    return NULL;
 }
 
 int createpidfile(const char *pidfile) {
@@ -3289,6 +3291,8 @@ int radsecproxy_main(int argc, char **ar
     /* just hang around doing nothing, anything to do here? */
     for (;;)
        sleep(1000);
+
+    return 0;
 }
 
 /* Local Variables: */
--- a/udp.c
+++ b/udp.c
@@ -266,6 +266,8 @@ void *udpclientrd(void *arg) {
        buf = radudpget(*s, NULL, &server, NULL);
        replyh(server, buf);
     }
+
+    return NULL;
 }
 
 void *udpserverrd(void *arg) {
@@ -310,6 +312,8 @@ void *udpserverwr(void *arg) {
        debug(DBG_DBG, "udpserverwr: refcount %d", reply->refcount);
        freerq(reply);
     }
+
+    return NULL;
 }
 
 void addclientudp(struct client *client) {
 
comments