From: Derrick Brashear Date: Thu, 11 Oct 2001 22:51:13 +0000 (+0000) Subject: fix-attach-directories-code-to-properly-use-vgetpartition-20011011 X-Git-Tag: openafs-devel-1_3_0~207 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a69752132ba1299b829c14942141711c0fcb6733;p=packages%2Fo%2Fopenafs.git fix-attach-directories-code-to-properly-use-vgetpartition-20011011 irix hates us when we misuse functions --- diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index 71f686d4d..547e99a28 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -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));