Commit 8764af86 authored by David Lawrence's avatar David Lawrence
Browse files

/*

	 * 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.)
parent 131c2e2e
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment