mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
/*
* Compilers that use an older prototype for recvfrom() will * warn about the type of the sixth parameter, fromlen. It * is now standardized as unsigned, specifically as socklen_t. */ (... but the code itself still uses unsigned int. This comment was added because HP/UX is complaining now even as other compilers stopped complaining when it was changed from signed int to unsigned int.)
This commit is contained in:
@@ -227,6 +227,11 @@ lwres_context_sendrecv(lwres_context_t *ctx,
|
|||||||
return (LWRES_R_TIMEOUT);
|
return (LWRES_R_TIMEOUT);
|
||||||
|
|
||||||
fromlen = sizeof(sin);
|
fromlen = sizeof(sin);
|
||||||
|
/*
|
||||||
|
* Compilers that use an older prototype for recvfrom() will
|
||||||
|
* warn about the type of the sixth parameter, fromlen. It
|
||||||
|
* is now standardized as unsigned, specifically as socklen_t.
|
||||||
|
*/
|
||||||
ret = recvfrom(ctx->sock, recvbase, recvlen, 0,
|
ret = recvfrom(ctx->sock, recvbase, recvlen, 0,
|
||||||
(struct sockaddr *)&sin, &fromlen);
|
(struct sockaddr *)&sin, &fromlen);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user