/usr/src/usr.bin/netstat/inet.c typo fix

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

/usr/src/usr.bin/netstat/inet.c typo fix

João Salvatti
I guess I found a typo on /usr/src/usr.bin/netstat/inet.c file.

Patch file:

--- /usr/src/usr.bin/netstat/inet.c     Thu May  8 00:13:55 2008
+++ inet.c      Mon Feb  2 12:37:29 2009
@@ -410,7 +410,7 @@
 {
        struct ipstat ipstat;
        int mib[] = { CTL_NET, AF_INET, IPPROTO_IP, IPCTL_STATS };
-       size_t len = sizeof(ipstat);;
+       size_t len = sizeof(ipstat);

        if (sysctl(mib, sizeof(mib) / sizeof(mib[0]),
            &ipstat, &len, NULL, 0) == -1) {


--
Joco Salvatti
Graduated in Computer Science
Federal University of Para - UFPA - Brazil
E-Mail: [hidden email]

[demime 1.01d removed an attachment of type application/octet-stream which had a name of inet.patch]

Reply | Threaded
Open this post in threaded view
|

Re: /usr/src/usr.bin/netstat/inet.c typo fix

Marc Balmer-2
Am 02.02.2009 um 17:00 schrieb Joco Salvatti:

> I guess I found a typo on /usr/src/usr.bin/netstat/inet.c file.

thanks, I just committed that.

>
>
> Patch file:
>
> --- /usr/src/usr.bin/netstat/inet.c     Thu May  8 00:13:55 2008
> +++ inet.c      Mon Feb  2 12:37:29 2009
> @@ -410,7 +410,7 @@
> {
>        struct ipstat ipstat;
>        int mib[] = { CTL_NET, AF_INET, IPPROTO_IP, IPCTL_STATS };
> -       size_t len = sizeof(ipstat);;
> +       size_t len = sizeof(ipstat);
>
>        if (sysctl(mib, sizeof(mib) / sizeof(mib[0]),
>            &ipstat, &len, NULL, 0) == -1) {
>
>
> --
> Joco Salvatti
> Graduated in Computer Science
> Federal University of Para - UFPA - Brazil
> E-Mail: [hidden email]
>
> [demime 1.01d removed an attachment of type application/octet-stream
> which had a name of inet.patch]