Avoid compilation error on NetBSD 5.0.
authorBruno Haible <bruno@clisp.org>
Tue, 11 Aug 2009 19:06:43 +0000 (21:06 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 11 Aug 2009 19:06:43 +0000 (21:06 +0200)
ChangeLog
tests/test-locale.c
tests/test-stdio.c
tests/test-stdlib.c
tests/test-string.c
tests/test-unistd.c

index bfd812e..4832c99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 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.
 
        Undo 2009-07-19 commit.
index 625cc43..60a50a7 100644 (file)
@@ -35,7 +35,7 @@ int a[] =
 
 /* 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 ()
index dcfe38d..41299e2 100644 (file)
@@ -27,7 +27,7 @@ int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
 
 /* 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 ()
index ae46ba1..711cfa6 100644 (file)
@@ -26,7 +26,7 @@ int exitcode;
 
 /* 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 ()
index fe53cd9..688d0d3 100644 (file)
@@ -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 ()
index 129367b..e0b8291 100644 (file)
@@ -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 };