diff options
author | Yang Tse <yangsita@gmail.com> | 2008-07-17 03:07:54 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-07-17 03:07:54 +0000 |
commit | 39f23aec6b3cd5e7e5dd9077d96f8eff37ff2b19 (patch) | |
tree | 99b4fdb88e20b8235bf1ff38672985c3f0ed7795 /ares/setup_once.h | |
parent | 362422641e15aa500991ab8508eb0c10cf86b1e5 (diff) | |
download | curl-39f23aec6b3cd5e7e5dd9077d96f8eff37ff2b19.tar.gz |
RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
to the data type pointed by its respective argument and not the pointer type.
Diffstat (limited to 'ares/setup_once.h')
-rw-r--r-- | ares/setup_once.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ares/setup_once.h b/ares/setup_once.h index 85a291a81..d3159904f 100644 --- a/ares/setup_once.h +++ b/ares/setup_once.h @@ -206,12 +206,12 @@ struct timeval { Error Missing_definition_of_return_and_arguments_types_of_recvfrom /* */ #else -#define sreadfrom(s,b,bl,f,fl) (ssize_t)recvfrom((RECVFROM_TYPE_ARG1)(s), \ - (RECVFROM_TYPE_ARG2)(b), \ - (RECVFROM_TYPE_ARG3)(bl), \ - (RECVFROM_TYPE_ARG4)(0), \ - (RECVFROM_TYPE_ARG5)(f), \ - (RECVFROM_TYPE_ARG6)(fl)) +#define sreadfrom(s,b,bl,f,fl) (ssize_t)recvfrom((RECVFROM_TYPE_ARG1) (s), \ + (RECVFROM_TYPE_ARG2 *)(b), \ + (RECVFROM_TYPE_ARG3) (bl), \ + (RECVFROM_TYPE_ARG4) (0), \ + (RECVFROM_TYPE_ARG5 *)(f), \ + (RECVFROM_TYPE_ARG6 *)(fl)) #endif #else /* HAVE_RECVFROM */ #ifndef sreadfrom |