From: Bruno Haible Date: Tue, 11 Aug 2009 19:06:43 +0000 (+0200) Subject: Avoid compilation error on NetBSD 5.0. X-Git-Tag: v0.1~5681 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=b8521e81e705f88784e7a6709bcd6c5a3ea440e0;p=gnulib.git Avoid compilation error on NetBSD 5.0. --- diff --git a/ChangeLog b/ChangeLog index bfd812eaa..4832c99e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ 2009-08-11 Bruno Haible + 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 + at . + +2009-08-11 Bruno Haible + * modules/dup2-tests (Depends-on): Remove close. Undo 2009-07-19 commit. diff --git a/tests/test-locale.c b/tests/test-locale.c index 625cc43d8..60a50a719 100644 --- a/tests/test-locale.c +++ b/tests/test-locale.c @@ -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 () diff --git a/tests/test-stdio.c b/tests/test-stdio.c index dcfe38dd5..41299e215 100644 --- a/tests/test-stdio.c +++ b/tests/test-stdio.c @@ -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 () diff --git a/tests/test-stdlib.c b/tests/test-stdlib.c index ae46ba166..711cfa631 100644 --- a/tests/test-stdlib.c +++ b/tests/test-stdlib.c @@ -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 () diff --git a/tests/test-string.c b/tests/test-string.c index fe53cd9b1..688d0d31c 100644 --- 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 () diff --git a/tests/test-unistd.c b/tests/test-unistd.c index 129367b4d..e0b82918a 100644 --- 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 };