mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +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);
|
||||
|
||||
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,
|
||||
(struct sockaddr *)&sin, &fromlen);
|
||||
|
||||
|
Reference in New Issue
Block a user