mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
not-cplusplus-20050530
variables must be declared at the start of a block.
This commit is contained in:
parent
ad4634fca2
commit
5343ad18e3
@ -397,13 +397,15 @@ VInitVolumePackageThread(void * args) {
|
|||||||
struct DiskPartition *diskP;
|
struct DiskPartition *diskP;
|
||||||
struct vinitvolumepackage_thread_t * params;
|
struct vinitvolumepackage_thread_t * params;
|
||||||
struct diskpartition_queue_t * dpq;
|
struct diskpartition_queue_t * dpq;
|
||||||
int nAttached = 0, nUnattached = 0;
|
|
||||||
|
|
||||||
params = (vinitvolumepackage_thread_t *) args;
|
params = (vinitvolumepackage_thread_t *) args;
|
||||||
|
|
||||||
|
|
||||||
VOL_LOCK;
|
VOL_LOCK;
|
||||||
/* Attach all the volumes in this partition */
|
/* Attach all the volumes in this partition */
|
||||||
while (queue_IsNotEmpty(params)) {
|
while (queue_IsNotEmpty(params)) {
|
||||||
|
int nAttached = 0, nUnattached = 0;
|
||||||
|
|
||||||
dpq = queue_First(params,diskpartition_queue_t);
|
dpq = queue_First(params,diskpartition_queue_t);
|
||||||
queue_Remove(dpq);
|
queue_Remove(dpq);
|
||||||
VOL_UNLOCK;
|
VOL_UNLOCK;
|
||||||
|
Loading…
Reference in New Issue
Block a user