2
0
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:
David Lawrence
2000-05-08 19:53:50 +00:00
parent 131c2e2e9d
commit 8764af86f7

View File

@@ -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);