fix_warnings 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --- a/fix_options.c
  2. +++ b/fix_options.c
  3. @@ -32,7 +32,7 @@ static char sccsid[] = "@(#) fix_options
  4. /* fix_options - get rid of IP-level socket options */
  5. -fix_options(request)
  6. +void fix_options(request)
  7. struct request_info *request;
  8. {
  9. #ifdef IP_OPTIONS
  10. @@ -46,7 +46,7 @@ struct request_info *request;
  11. struct in_addr dummy;
  12. #ifdef INET6
  13. struct sockaddr_storage ss;
  14. - int sslen;
  15. + socklen_t sslen;
  16. /*
  17. * check if this is AF_INET socket
  18. --- a/options.c
  19. +++ b/options.c
  20. @@ -41,6 +41,7 @@ static char sccsid[] = "@(#) options.c 1
  21. #include <netinet/in.h>
  22. #include <netdb.h>
  23. #include <stdio.h>
  24. +#include <unistd.h>
  25. #include <syslog.h>
  26. #include <pwd.h>
  27. #include <grp.h>
  28. --- a/scaffold.c
  29. +++ b/scaffold.c
  30. @@ -17,6 +17,7 @@ static char sccs_id[] = "@(#) scaffold.c
  31. #include <arpa/inet.h>
  32. #include <netdb.h>
  33. #include <stdio.h>
  34. +#include <stdlib.h>
  35. #include <syslog.h>
  36. #include <setjmp.h>
  37. #include <string.h>