patch-socket_c 745 B

1234567891011121314151617181920212223242526
  1. --- tcp_wrappers_7.6.orig/socket.c 1997-03-21 19:27:25.000000000 +0100
  2. +++ tcp_wrappers_7.6/socket.c 2009-06-05 18:45:03.000000000 +0200
  3. @@ -76,7 +76,11 @@ struct request_info *request;
  4. {
  5. static struct sockaddr_in client;
  6. static struct sockaddr_in server;
  7. +#if !defined (__GLIBC__)
  8. int len;
  9. +#else /* __GLIBC__ */
  10. + size_t len;
  11. +#endif /* __GLIBC__ */
  12. char buf[BUFSIZ];
  13. int fd = request->fd;
  14. @@ -224,7 +228,11 @@ int fd;
  15. {
  16. char buf[BUFSIZ];
  17. struct sockaddr_in sin;
  18. +#if !defined(__GLIBC__)
  19. int size = sizeof(sin);
  20. +#else /* __GLIBC__ */
  21. + size_t size = sizeof(sin);
  22. +#endif /* __GLIBC__ */
  23. /*
  24. * Eat up the not-yet received datagram. Some systems insist on a