Date: Tue, 4 Jul 2006 10:15:23 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100558 for review Message-ID: <200607041015.k64AFNin024495@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100558 Change 100558 by piso@piso_newluxor on 2006/07/04 10:14:51 Use libkern.h for strncmp() prototype instead of redefining it by myself. Affected files ... .. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#6 edit Differences ... ==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#6 (text+ko) ==== @@ -26,6 +26,7 @@ */ #ifdef _KERNEL +#include <sys/libkern.h> #include <sys/param.h> #include <sys/proc.h> #else @@ -56,11 +57,6 @@ #include <sys/types.h> -#if __FreeBSD_version >= 500000 -/* XXX - make the compiler happy... */ -int strncmp(const char *s1, const char *s2, size_t len); -#endif - /* protocol and userland module handlers chains */ struct chain handler_chain, dll_chain;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607041015.k64AFNin024495>