[BusyBox] Re: ping.c: socklen_t [PATCH]
Shaun Jackman
sjackman at gmail.com
Sun Jul 24 21:26:14 UTC 2005
Ping?
-- sdj
On 3/19/05, Shaun Jackman <sjackman at gmail.com> wrote:
> 2005-03-19 Shaun Jackman <sjackman at gmail.com>
>
> * networking/ping.c (ping): Change the type of fromlen to socklen_t.
>
> diff -ur busybox-1.00.orig/networking/ping.c busybox-1.00/networking/ping.c
> --- busybox-1.00.orig/networking/ping.c 2004-03-15 00:28:48.000000000 -0800
> +++ busybox-1.00/networking/ping.c 2005-03-17 12:11:17.000000000 -0800
> @@ -136,7 +136,7 @@
> /* listen for replies */
> while (1) {
> struct sockaddr_in from;
> - size_t fromlen = sizeof(from);
> + socklen_t fromlen = sizeof(from);
>
> if ((c = recvfrom(pingsock, packet, sizeof(packet), 0,
> (struct sockaddr *) &from, &fromlen)) < 0) {
>
More information about the busybox
mailing list