fix-attach-directories-code-to-properly-use-vgetpartition-20011011
authorDerrick Brashear <shadow@dementia.org>
Thu, 11 Oct 2001 22:51:13 +0000 (22:51 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 11 Oct 2001 22:51:13 +0000 (22:51 +0000)
irix hates us when we misuse functions

src/volser/volprocs.c

index 71f686d..547e99a 100644 (file)
@@ -1629,7 +1629,8 @@ struct partEntries *pEntries;
     struct stat rbuf, pbuf;
     char namehead[9];
     struct partList partList;
-    int code, i, j=0, k;
+    struct DiskPartition *dp;
+    int i, j=0, k;
 
     strcpy(namehead, "/vicep");        /*7 including null terminator*/
 
@@ -1644,8 +1645,8 @@ struct partEntries *pEntries;
            namehead[7] = 'a' + (k%26);
            namehead[8] = '\0';
        }
-       code = VGetPartition(namehead, 0);
-       if (code)
+       dp = VGetPartition(namehead, 0);
+       if (dp)
            partList.partId[j++] = i;
     }
     pEntries->partEntries_val = (afs_int32 *) malloc(j * sizeof(int));