From b8521e81e705f88784e7a6709bcd6c5a3ea440e0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 11 Aug 2009 21:06:43 +0200 Subject: [PATCH] Avoid compilation error on NetBSD 5.0. --- ChangeLog | 11 +++++++++++ tests/test-locale.c | 2 +- tests/test-stdio.c | 2 +- tests/test-stdlib.c | 2 +- tests/test-string.c | 2 +- tests/test-unistd.c | 2 +- 6 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index bfd812eaaa..4832c99e0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +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. diff --git a/tests/test-locale.c b/tests/test-locale.c index 625cc43d84..60a50a719d 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 dcfe38dd51..41299e2159 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 ae46ba1662..711cfa6315 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 fe53cd9b15..688d0d31c3 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 129367b4d7..e0b82918a9 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 }; -- 2.30.2