# HG changeset patch # User Bruno Haible # Date 1250017603 -7200 # Node ID 6f25212efacd3dfd305aafbe7214b23ba6b9f7b6 # Parent 151492d3bb0cb8c236985f02bda01c30b614de81 Avoid compilation error on NetBSD 5.0. diff --git a/ChangeLog b/ChangeLog --- 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 --- 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 () diff --git a/tests/test-stdio.c b/tests/test-stdio.c --- 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 () diff --git a/tests/test-stdlib.c b/tests/test-stdlib.c --- 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 () diff --git a/tests/test-string.c b/tests/test-string.c --- 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 --- 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 };