summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-17 03:07:54 (GMT)
committerYang Tse <yangsita@gmail.com>2008-07-17 03:07:54 (GMT)
commit2aeb0314f57e299089e90122ca9c375c91bd56af (patch)
treef32b8dcff866082643d9efdeda33f9f472b06e39 /setup_once.h
parent7dd6d7cbe13a7b55a52be0bdf6499ca809ea8523 (diff)
downloadc-ares-2aeb0314f57e299089e90122ca9c375c91bd56af.zip
c-ares-2aeb0314f57e299089e90122ca9c375c91bd56af.tar.gz
c-ares-2aeb0314f57e299089e90122ca9c375c91bd56af.tar.bz2
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 'setup_once.h')
-rw-r--r--setup_once.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/setup_once.h b/setup_once.h
index 85a291a..d315990 100644
--- a/setup_once.h
+++ b/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