patch-compat_c 445 B

12345678910111213
  1. --- ctorrent-dnh3.3.2.orig/compat.c 2008-06-15 02:00:19.000000000 +0200
  2. +++ ctorrent-dnh3.3.2/compat.c 2014-01-02 18:21:09.000000000 +0100
  3. @@ -67,8 +67,8 @@ int snprintf(char *str, size_t size, con
  4. char *strnstr(const char *haystack, const char *needle, size_t haystacklen)
  5. {
  6. char *p;
  7. - ssize_t plen;
  8. - ssize_t len = strlen(needle);
  9. + size_t plen;
  10. + size_t len = strlen(needle);
  11. if( *needle == '\0' )
  12. return (char *)haystack;