changeset 11806:6f25212efacd

Avoid compilation error on NetBSD 5.0.
author Bruno Haible <bruno@clisp.org>
date Tue, 11 Aug 2009 21:06:43 +0200
parents 151492d3bb0c
children 0d28b7568243
files ChangeLog tests/test-locale.c tests/test-stdio.c tests/test-stdlib.c tests/test-string.c tests/test-unistd.c
diffstat 6 files changed, 16 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2009-08-11  Bruno Haible  <bruno@clisp.org>
+
+	Avoid compilation error on NetBSD 5.0.
+	* tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
+	* tests/test-stdio.c: Likewise.
+	* tests/test-stdlib.c: Likewise.
+	* tests/test-string.c: Likewise.
+	* tests/test-unistd.c: Likewise.
+	Reported by Greg Troxel <gdt@ir.bbn.com>
+	at <https://savannah.gnu.org/support/?106973>.
+
 2009-08-11  Bruno Haible  <bruno@clisp.org>
 
 	* modules/dup2-tests (Depends-on): Remove close.
--- a/tests/test-locale.c
+++ b/tests/test-locale.c
@@ -35,7 +35,7 @@
 
 /* Check that NULL can be passed through varargs as a pointer type,
    per POSIX 2008.  */
-verify (sizeof NULL == sizeof (void *));
+verify (sizeof (NULL) == sizeof (void *));
 
 int
 main ()
--- a/tests/test-stdio.c
+++ b/tests/test-stdio.c
@@ -27,7 +27,7 @@
 
 /* Check that NULL can be passed through varargs as a pointer type,
    per POSIX 2008.  */
-verify (sizeof NULL == sizeof (void *));
+verify (sizeof (NULL) == sizeof (void *));
 
 int
 main ()
--- a/tests/test-stdlib.c
+++ b/tests/test-stdlib.c
@@ -26,7 +26,7 @@
 
 /* Check that NULL can be passed through varargs as a pointer type,
    per POSIX 2008.  */
-verify (sizeof NULL == sizeof (void *));
+verify (sizeof (NULL) == sizeof (void *));
 
 int
 main ()
--- a/tests/test-string.c
+++ b/tests/test-string.c
@@ -24,7 +24,7 @@
 
 /* Check that NULL can be passed through varargs as a pointer type,
    per POSIX 2008.  */
-verify (sizeof NULL == sizeof (void *));
+verify (sizeof (NULL) == sizeof (void *));
 
 int
 main ()
--- a/tests/test-unistd.c
+++ b/tests/test-unistd.c
@@ -24,7 +24,7 @@
 
 /* Check that NULL can be passed through varargs as a pointer type,
    per POSIX 2008.  */
-verify (sizeof NULL == sizeof (void *));
+verify (sizeof (NULL) == sizeof (void *));
 
 /* Check that the various SEEK_* macros are defined.  */
 int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };