100-missing-return.patch 1.3 KB

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