Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2005 11:38:18 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 85426 for review
Message-ID:  <200510171138.j9HBcI5I053887@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=85426

Change 85426 by rwatson@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");
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510171138.j9HBcI5I053887>