X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Frfc822%2Frfc822.c;h=2d23b9ca79be756ddaef6e6e5df2c94cb3e01255;hb=96dcdfbf1a400f7cb43cf3f0761f52fd6de9ff65;hp=08c0541328396c10f0afa59486429602610b4c16;hpb=e4b6a262822484244b52c476d1b4cc9c4fd8ee2b;p=ccan diff --git a/ccan/rfc822/rfc822.c b/ccan/rfc822/rfc822.c index 08c05413..2d23b9ca 100644 --- a/ccan/rfc822/rfc822.c +++ b/ccan/rfc822/rfc822.c @@ -8,6 +8,7 @@ #include #include +#include #include #ifdef TAL_USE_TALLOC @@ -16,24 +17,6 @@ #include #endif -#if !HAVE_MEMMEM -void *memmem(const void *haystack, size_t haystacklen, - const void *needle, size_t needlelen) -{ - const char *p, *last; - - p = haystack; - last = p + haystacklen - needlelen; - - do { - if (memcmp(p, needle, needlelen) == 0) - return (void *)p; - } while (p++ <= last); - - return NULL; -} -#endif - static void (*allocation_failure_hook)(const char *); static void NORETURN default_allocation_failure(const char *s)