]> granicus.if.org Git - shadow/commitdiff
Avoid implicit conversion of integers / pointers to booleans.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 25 May 2008 20:41:13 +0000 (20:41 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 25 May 2008 20:41:13 +0000 (20:41 +0000)
ChangeLog
libmisc/xgetXXbyYY.c

index c9c63fae50305e1f651bc7b7a7b7ea5476e1a9ae..38825b55ae6f0f66d4114a32533e9418f7e0624e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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@centraliens.net>
 
index 39458597445f3146490e321b446e68bea45a9590..62c3c3af87eb3696613ef5c509a300eb17fac2a5 100644 (file)
@@ -91,7 +91,7 @@ LOOKUP_TYPE *XFUNCTION_NAME (ARG_TYPE ARG_NAME)
                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);