X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=util.c;h=f0517b42fe30837ba7ef37712e1dc0ac727fc28b;hp=e68e9c9f5f0e27cbbc2f02382698475bb867dff0;hb=902e2d1eaaff0d3d33dee605a4746fd5d4b6b999;hpb=d654808ff33c54f587c5fee79be84ac20794db55 diff --git a/util.c b/util.c index e68e9c9..f0517b4 100644 --- a/util.c +++ b/util.c @@ -16,8 +16,6 @@ #include #include #include -#include -#include #include #include @@ -75,14 +73,3 @@ void get_hostname(void) snprintf(mdns_hostname, sizeof(mdns_hostname), "%s", utsname.nodename); snprintf(mdns_hostname_local, sizeof(mdns_hostname_local), "%s.local", utsname.nodename); } - -void* -memdup(const void *d, int l) -{ - void *r = malloc(l); - if (!r) - return NULL; - memcpy(r, d, l); - return r; -} -