[Pkg-shadow-commits] r2018 - in upstream/trunk: . libmisc

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sun May 25 20:41:16 UTC 2008


Author: nekral-guest
Date: 2008-05-25 20:41:13 +0000 (Sun, 25 May 2008)
New Revision: 2018

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/xgetXXbyYY.c
Log:
Avoid implicit conversion of integers / pointers to booleans.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-05-25 20:39:31 UTC (rev 2017)
+++ upstream/trunk/ChangeLog	2008-05-25 20:41:13 UTC (rev 2018)
@@ -2,6 +2,7 @@
 
 	* libmisc/xmalloc.c: Avoid implicit conversion of integers /
 	pointers to booleans.
+	* libmisc/xgetXXbyYY.c: Likewise.
 
 2008-05-25  Nicolas François  <nicolas.francois at centraliens.net>
 

Modified: upstream/trunk/libmisc/xgetXXbyYY.c
===================================================================
--- upstream/trunk/libmisc/xgetXXbyYY.c	2008-05-25 20:39:31 UTC (rev 2017)
+++ upstream/trunk/libmisc/xgetXXbyYY.c	2008-05-25 20:41:13 UTC (rev 2018)
@@ -91,7 +91,7 @@
 		errno = 0;
 		status = REENTRANT_NAME(ARG_NAME, result, buffer,
 		                        length, &resbuf);
-		if (!status && (resbuf == result)) {
+		if ((0 ==status) && (resbuf == result)) {
 			/* Build a result structure that can be freed by
 			 * the shadow *_free functions. */
 			LOOKUP_TYPE *ret_result = DUP_FUNCTION(result);




More information about the Pkg-shadow-commits mailing list