not-cplusplus-20050530
authorJeffrey Altman <jaltman@columbia.edu>
Mon, 30 May 2005 11:49:30 +0000 (11:49 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 30 May 2005 11:49:30 +0000 (11:49 +0000)
variables must be declared at the start of a block.

src/vol/volume.c

index 9954bbf..7eb8854 100644 (file)
@@ -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;