PERFORCE change 100558 for review

Paolo Pisati piso at FreeBSD.org
Tue Jul 4 10:15:31 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=100558

Change 100558 by piso at 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;
 


More information about the p4-projects mailing list