vinum(4): Use char for has_part since that's what we scanf() later on.
authorSascha Wildner <saw@online.de>
Sat, 3 Jul 2010 20:35:04 +0000 (22:35 +0200)
committerSascha Wildner <saw@online.de>
Sat, 3 Jul 2010 20:35:04 +0000 (22:35 +0200)
sys/dev/raid/vinum/vinumio.c

index ec88411..a2aabba 100644 (file)
@@ -699,11 +699,10 @@ vinum_scandisk(char *devicename[], int drives)
 
     /* Open all drives and find which was modified most recently */
     for (driveno = 0; driveno < drives; driveno++) {
-       char part;                                          /* UNIX partition */
+       char part, has_part = 0;                            /* UNIX partition */
        int slice;
        int founddrive;                                     /* flag when we find a vinum drive */
        int has_slice = -1;
-       int has_part = 0;
        char *tmp;
 
        founddrive = 0;                                     /* no vinum drive found yet on this spindle */