PERFORCE change 152818 for review

Robert Watson rwatson at FreeBSD.org
Tue Nov 11 13:01:19 PST 2008


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

Change 152818 by rwatson at rwatson_lethe on 2008/11/11 21:00:41

	In most places in OpenBSM, we rely on the audit_internal.h
	definition of __unused for platforms not implementing it; however,
	for auditfilter_noop, which is sample code to be used by
	third-party developers, don't rey on an OpenBSM-internal
	definition, and just do it here as well.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/modules/auditfilter_noop/auditfilter_noop.c#6 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/modules/auditfilter_noop/auditfilter_noop.c#6 (text+ko) ====

@@ -25,7 +25,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/trustedbsd/openbsm/modules/auditfilter_noop/auditfilter_noop.c#5 $
+ * $P4: //depot/projects/trustedbsd/openbsm/modules/auditfilter_noop/auditfilter_noop.c#6 $
  */
 
 /*
@@ -38,6 +38,10 @@
 #include <bsm/libbsm.h>
 #include <bsm/audit_filter.h>
 
+#ifndef __unused
+#define __unused
+#endif
+
 int
 AUDIT_FILTER_ATTACH(void *instance __unused, int argc __unused, 
     char *argv[] __unused)


More information about the p4-projects mailing list