nitpicking on strlcpy.c

Andrea Campi andrea+freebsd_current at webcom.it
Wed Oct 13 05:42:43 PDT 2004


I know, I am being silly...

I just noticed rev 1.4 introduced a buglet in the OpenBSD rcsid:

===================================================================
RCS file: /usr/local/www/cvsroot/FreeBSD/src/lib/libc/string/strlcpy.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- src/lib/libc/string/strlcpy.c	2001/05/24 08:47:41	1.3
+++ src/lib/libc/string/strlcpy.c	2001/11/07 19:55:16	1.4
@@ -28,14 +28,10 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-#if 0
-static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $";
-#endif
+static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $");
 #endif /* LIBC_SCCS and not lint */
-#ifndef lint
-static const char rcsid[] =
-  "$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/lib/libc/string/strlcpy.c,v 1.3 2001/05/24 08:47:41 obrien Exp $";
-#endif
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/lib/libc/string/strlcpy.c,v 1.4 2001/11/07 19:55:16 obrien Exp $");
 
 #include <sys/types.h>
 #include <string.h>




-- 
               Speak softly and carry a cellular phone.


More information about the freebsd-current mailing list