We use this ZERO_NULL to avoid picky compiler warnings,

when assigning a NULL pointer to a function pointer var.
This commit is contained in:
Yang Tse 2007-10-17 16:58:32 +00:00
parent 5360f88393
commit 92433e596b
11 changed files with 106 additions and 112 deletions

View file

@ -378,6 +378,14 @@ typedef int sig_atomic_t;
#endif
/*
* We use this ZERO_NULL to avoid picky compiler warnings,
* when assigning a NULL pointer to a function pointer var.
*/
#define ZERO_NULL 0
#if defined (__LP64__) && defined(__hpux) && !defined(_XOPEN_SOURCE_EXTENDED)
#include <sys/socket.h>
/* HP-UX has this oddity where it features a few functions that don't work
@ -460,5 +468,6 @@ inline static ssize_t Curl_hp_recvfrom(int s, void *buf, size_t len, int flags,
#endif /* HPUX work-around */
#endif /* __SETUP_ONCE_H */