PERFORCE change 90083 for review

Robert Watson rwatson at FreeBSD.org
Sat Jan 21 14:08:03 GMT 2006


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

Change 90083 by rwatson at rwatson_sesame on 2006/01/21 14:07:04

	Add an assert to help FlexeLint figure out GET_TOKEN_AREA().  phk
	and I can't see the bug in the macro that causes FlexeLint to get
	unhappy, which doesn't mean it doesn't exist, just that it's got
	us stumped, so the assert helps FlexeLint figure out what we
	meant (and maybe said).

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#29 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#29 (text+ko) ====

@@ -47,6 +47,7 @@
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>
 
+#include <assert.h>
 #include <errno.h>
 #include <string.h>
 #include <stdlib.h>
@@ -67,6 +68,7 @@
 		} else							\
 			memset(dptr, 0, (length));			\
 	}								\
+	assert(t == NULL || dptr != NULL);				\
 } while (0)
 
 /*
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list