PERFORCE change 40252 for review

Robert Watson rwatson at FreeBSD.org
Thu Oct 23 03:12:51 GMT 2003


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

Change 40252 by rwatson at rwatson_paprika on 2003/10/22 20:12:31

	Resolve gcc assignment in conditional with too few parenthesis
	warning.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/sys/kern/kern_xxx.c#6 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/sys/kern/kern_xxx.c#6 (text+ko) ====

@@ -142,7 +142,8 @@
 {
 	int error;
 
-	if (error = cap_check(td,CAP_SYS_ADMIN))
+	error = cap_check(td,CAP_SYS_ADMIN);
+	if (error)
 		return (error);
 	mtx_lock(&Giant);
 	hostid = uap->hostid;
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