Module Name: src
Committed By: matt
Date: Sun Aug 23 20:06:14 UTC 2009
Modified Files:
src/common/lib/libc/string [matt-nb5-mips64]: memset2.c
Log Message:
CTASSERT only defined for kernel enviornments.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/common/lib/libc/string/memset2.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/common/lib/libc/string/memset2.c
diff -u src/common/lib/libc/string/memset2.c:1.1.2.2 src/common/lib/libc/string/memset2.c:1.1.2.3
--- src/common/lib/libc/string/memset2.c:1.1.2.2 Sun Aug 23 06:40:49 2009
+++ src/common/lib/libc/string/memset2.c Sun Aug 23 20:06:13 2009
@@ -53,7 +53,7 @@
#endif
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: memset2.c,v 1.1.2.2 2009/08/23 06:40:49 matt Exp $");
+__RCSID("$NetBSD: memset2.c,v 1.1.2.3 2009/08/23 20:06:13 matt Exp $");
#endif /* LIBC_SCCS and not lint */
/*
@@ -71,7 +71,9 @@
#define memset test_memset
#endif
+#ifdef CTASSERT
CTASSERT((~(memword_t)0U >> 1) != ~(memword_t)0U);
+#endif
void *
memset(void *addr, int c, size_t len)