diff options
author | Yang Tse <yangsita@gmail.com> | 2007-10-17 16:58:32 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-10-17 16:58:32 +0000 |
commit | 92433e596b7fbfa5c75926705dcfef0080ebf012 (patch) | |
tree | 9dc076641396934683d15b962395dc6f11d36d5f /lib/setup_once.h | |
parent | 5360f88393c91758ed0f29fa65a9b15716589aa1 (diff) | |
download | curl-92433e596b7fbfa5c75926705dcfef0080ebf012.tar.gz |
We use this ZERO_NULL to avoid picky compiler warnings,
when assigning a NULL pointer to a function pointer var.
Diffstat (limited to 'lib/setup_once.h')
-rw-r--r-- | lib/setup_once.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h index 1622f0cc8..ba564120a 100644 --- a/lib/setup_once.h +++ b/lib/setup_once.h @@ -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 */ |