move int declaration to the beginning of block (C style)
authorGengbin Zheng <gzheng@order.(none)>
Fri, 19 Feb 2010 06:53:03 +0000 (00:53 -0600)
committerGengbin Zheng <gzheng@order.(none)>
Fri, 19 Feb 2010 06:53:03 +0000 (00:53 -0600)
src/conv-ldb/cldb.spray.c

index 3b82dbb48525854c2f5e2cc8b9d72f7c62b3f4f0..39b9c66270bb1df2b186a9c7aed361685dcb246e 100644 (file)
@@ -145,6 +145,7 @@ void CldHopHandler(char *msg)
 
 void CldEnqueueGroup(CmiGroup grp, void *msg, int infofn)
 {
+  int npes, *pes;
   int len, queueing, priobits,i; unsigned int *prioptr;
   CldInfoFn ifn = (CldInfoFn)CmiHandlerToFunction(infofn);
   peinfo *pinf = &(CpvAccess(peinf));
@@ -157,8 +158,6 @@ void CldEnqueueGroup(CmiGroup grp, void *msg, int infofn)
   CmiSetInfo(msg,infofn);
   CmiSetXHandler(msg, CmiGetHandler(msg));
   CmiSetHandler(msg, pinf->EnqueueHandler);
-  int npes;
-  int *pes;
   CmiLookupGroup(grp, &npes, &pes);
   for(i=0;i<npes;i++) {
     CmiSyncSend(pes[i], len, msg);