X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Frfc822%2Frfc822.c;h=2d23b9ca79be756ddaef6e6e5df2c94cb3e01255;hb=5dbd87b876434dd703dfcc30cb0503118aac2076;hp=08c0541328396c10f0afa59486429602610b4c16;hpb=d61a0d6c2c9d2b385075338665d64ae1d1bbe3dc;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)