From: Ulrich Drepper Date: Fri, 30 Jan 1998 16:53:08 +0000 (+0000) Subject: (assert_perror): Correct test for errnum. X-Git-Tag: cvs/before-sparc-2_0_x-branch~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f49584358ebe26ebec5fa34d4ee8eb5ebeca369;p=thirdparty%2Fglibc.git (assert_perror): Correct test for errnum. --- diff --git a/assert/assert.h b/assert/assert.h index 3f0b55f866f..ec54f64c05e 100644 --- a/assert/assert.h +++ b/assert/assert.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 94, 95, 96, 97 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 94, 95, 96, 97, 98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -80,9 +80,9 @@ __END_DECLS # ifdef __USE_GNU # define assert_perror(errnum) \ - ((void) ((errnum) ? 0 : (__assert_perror_fail ((errnum), \ - __FILE__, __LINE__, \ - __ASSERT_FUNCTION), 0))) + ((void) (!(errnum) ? 0 : (__assert_perror_fail ((errnum), \ + __FILE__, __LINE__, \ + __ASSERT_FUNCTION), 0))) # endif /* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'