From: Jeffrey Altman Date: Mon, 30 May 2005 11:50:04 +0000 (+0000) Subject: STABLE14-not-cplusplus-20050530 X-Git-Tag: openafs-devel-1_3_83~8 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f4470ef33be9d9b050588ab6aabec35cc4dd6586;p=packages%2Fo%2Fopenafs.git STABLE14-not-cplusplus-20050530 variables must be declared at the start of a block. (cherry picked from commit 5343ad18e33b97e808fdf377bbdb2c76bb63da0d) --- diff --git a/src/vol/volume.c b/src/vol/volume.c index 9954bbf32..7eb8854e8 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -397,13 +397,15 @@ VInitVolumePackageThread(void * args) { struct DiskPartition *diskP; struct vinitvolumepackage_thread_t * params; struct diskpartition_queue_t * dpq; - int nAttached = 0, nUnattached = 0; params = (vinitvolumepackage_thread_t *) args; + VOL_LOCK; /* Attach all the volumes in this partition */ while (queue_IsNotEmpty(params)) { + int nAttached = 0, nUnattached = 0; + dpq = queue_First(params,diskpartition_queue_t); queue_Remove(dpq); VOL_UNLOCK;