PERFORCE change 85426 for review

Robert Watson rwatson at FreeBSD.org
Mon Oct 17 04:38:20 PDT 2005


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

Change 85426 by rwatson at rwatson_zoo on 2005/10/17 11:37:46

	In FreeBSD, we use KASSERT(), so don't need a local assertion
	definition for the audit code (as was required in Darwin).

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#47 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#47 (text+ko) ====

@@ -68,19 +68,6 @@
 #define	AUDIT_PRINTF(X)
 #endif
 
-#if 0
-#if DIAGNOSTIC
-#if defined(assert)
-#undef assert()
-#endif
-#define assert(cond)    \
-    ((void) ((cond) ? 0 : panic("%s:%d (%s)", __FILE__, __LINE__, # cond)))
-#else
-#include <kern/assert.h>
-#endif /* DIAGNOSTIC */
-#endif
-#define assert(x)	KASSERT(x, x)
-
 MALLOC_DEFINE(M_AUDIT, "audit", "Audit event records");
 
 /*


More information about the p4-projects mailing list