mirror of
https://github.com/curl/curl.git
synced 2026-07-30 07:48:02 +03:00
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.
This commit is contained in:
parent
362422641e
commit
39f23aec6b
22 changed files with 173 additions and 107 deletions
|
|
@ -213,12 +213,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue