From 9e92b089c0c5abdbedafe3b06cf50b01ae7047e8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 14 Oct 1999 15:18:39 +0000 Subject: [PATCH] NULL shouldn't be used in test programs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 6 +++--- configure.in | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index dceed7f898..2b07adf545 100755 --- a/configure +++ b/configure @@ -11121,7 +11121,7 @@ echo "configure:11119: checking the type of the third argument of getsockname" > #include "confdefs.h" #include int main() { -socklen_t len; getsockname(0, NULL, &len); +socklen_t len; getsockname(0, 0, &len); ; return 0; } EOF if { (eval echo configure:11128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then @@ -11139,7 +11139,7 @@ else #include "confdefs.h" #include int main() { -size_t len; getsockname(0, NULL, &len); +size_t len; getsockname(0, 0, &len); ; return 0; } EOF if { (eval echo configure:11146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then @@ -11157,7 +11157,7 @@ else #include "confdefs.h" #include int main() { -int len; getsockname(0, NULL, &len); +int len; getsockname(0, 0, &len); ; return 0; } EOF if { (eval echo configure:11164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then diff --git a/configure.in b/configure.in index a8fe1bca06..71acf22cbf 100644 --- a/configure.in +++ b/configure.in @@ -2372,15 +2372,15 @@ if test "$wxUSE_SOCKETS" = "yes"; then AC_MSG_CHECKING(the type of the third argument of getsockname) AC_TRY_COMPILE( [#include ], - [socklen_t len; getsockname(0, NULL, &len);], + [socklen_t len; getsockname(0, 0, &len);], AC_DEFINE(SOCKLEN_T, socklen_t) AC_MSG_RESULT(socklen_t), AC_TRY_COMPILE( [#include ], - [size_t len; getsockname(0, NULL, &len);], + [size_t len; getsockname(0, 0, &len);], AC_DEFINE(SOCKLEN_T, size_t) AC_MSG_RESULT(size_t), AC_TRY_COMPILE( [#include ], - [int len; getsockname(0, NULL, &len);], + [int len; getsockname(0, 0, &len);], AC_DEFINE(SOCKLEN_T, int) AC_MSG_RESULT(int), AC_MSG_RESULT(unknown) ) -- 2.47.2