Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2003 20:12:51 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 40252 for review
Message-ID:  <200310230312.h9N3Cpui072653@repoman.freebsd.org>

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

Change 40252 by rwatson@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;



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