On Wed, Jun  6, 2012 at 10:34:04 +0200, Salvatore Bonaccorso wrote:

> diff -u rstatd-4.0.1/getdata.c rstatd-4.0.1/getdata.c
> --- rstatd-4.0.1/getdata.c
> +++ rstatd-4.0.1/getdata.c
> @@ -289,6 +289,10 @@
>               getdata.disk = get_disk26;
>               getdata.vm = get_vm26;
>       }
> +     if (0 == strncmp(u.release, "3", 1)) {
> +             getdata.disk = get_disk26;
> +             getdata.vm = get_vm26;
> +     }
>  
>       /* prepare the disk patterns */
>       for (i = 0; i < PATTERNS; i++) {

That seems silly.  Make it the default, not yet another broken "if".

Cheers,
Julien


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to