Turn off assertions when running in the kernel.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 26 Sep 2004 02:30:11 +0000 (02:30 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 26 Sep 2004 02:30:11 +0000 (02:30 +0000)
src/lib/string.c

index cb042f02242d02a2090f6566016fb45f67c0df21..8971fae21b3c4d6da492b2e54614dbb3e6f8e058 100644 (file)
@@ -1,4 +1,8 @@
 #include <string.h>
+
+#ifdef KERNEL
+#define NDEBUG
+#endif
 #include <debug.h>
 
 /* Copies SIZE bytes from SRC to DST, which must not overlap.