[PVFS2-CVS] commit by robl in pvfs2-1/src/io/trove/trove-dbpf: dbpf-dspace.c

CVS commit program pvfs2-internal@beowulf-underground.org
Tue Feb 3 17:28:02 EST 2004


Update of /projects/cvsroot/pvfs2-1/src/io/trove/trove-dbpf
In directory parlweb.parl.clemson.edu:/tmp/cvs-serv29152/src/io/trove/trove-dbpf

Modified Files:
	dbpf-dspace.c 
Log Message:
older gcc needs variable declarations earlier 


Index: dbpf-dspace.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/io/trove/trove-dbpf/dbpf-dspace.c,v
diff -u -w -p -u -r1.80 -r1.81
--- dbpf-dspace.c	2 Feb 2004 23:42:00 -0000	1.80
+++ dbpf-dspace.c	3 Feb 2004 17:28:02 -0000	1.81
@@ -1043,13 +1043,15 @@ static int dbpf_dspace_cancel(
     TROVE_context_id context_id)
 {
     int ret = -TROVE_ENOSYS;
-
-    gossip_debug(GOSSIP_TROVE_DEBUG, "dbpf_dspace_cancel called\n");
-
 #ifdef __PVFS2_TROVE_THREADED__
     int state = 0;
     gen_mutex_t *context_mutex = NULL;
     dbpf_queued_op_t *cur_op = NULL;
+#endif
+
+    gossip_debug(GOSSIP_TROVE_DEBUG, "dbpf_dspace_cancel called\n");
+
+#ifdef __PVFS2_TROVE_THREADED__
 
     assert(dbpf_completion_queue_array[context_id]);
     context_mutex = dbpf_completion_queue_array_mutex[context_id];




More information about the PVFS2-CVS mailing list