PERFORCE change 110120 for review

Todd Miller millert at FreeBSD.org
Thu Nov 16 19:13:52 UTC 2006


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

Change 110120 by millert at millert_macbook on 2006/11/16 19:11:37

	Handle 'NULLOK'

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/policies/test/mac_parse.pl#3 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/policies/test/mac_parse.pl#3 (text+ko) ====

@@ -211,6 +211,9 @@
 				print CFILE "\tUSE_LABEL($var, TASKTYPE);\n";
 		}
 		elsif ($type =~ /struct label/) {
+			if ($flags =~ /NULLOK/) {
+				print CFILE "\tif ($var != NULL)\n\t";
+			}
 			if ($firsttype ne "") {
 				print CFILE "\tUSE_LABEL($var, $firsttype);\n";
 			}


More information about the trustedbsd-cvs mailing list