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
This commit is contained in:
Vadim Zeitlin
1999-10-14 15:18:39 +00:00
parent 8f8ca6c952
commit 9e92b089c0
2 changed files with 6 additions and 6 deletions

6
configure vendored
View File

@@ -11121,7 +11121,7 @@ echo "configure:11119: checking the type of the third argument of getsockname" >
#include "confdefs.h"
#include <sys/socket.h>
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 <sys/socket.h>
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 <sys/socket.h>
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