fixed a c syntax issue.
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 24 Oct 2007 03:11:10 +0000 (03:11 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 24 Oct 2007 03:11:10 +0000 (03:11 +0000)
src/conv-core/cpuaffinity.c

index 57503db1f65bc231dfa31d3c1d50fbf0a1da88b1..702378209b1b0bd934fd71ba5ccee0b423138f8a 100644 (file)
@@ -183,6 +183,7 @@ static void cpuAffinityRecvHandler(void *msg)
 
 void CmiInitCPUAffinity(char **argv)
 {
+  skt_ip_t myip;
   hostnameMsg  *msg;
   int affinity_flag = CmiGetArgFlagDesc(argv,"+setcpuaffinity",
                                                "set cpu affinity");
@@ -200,7 +201,7 @@ void CmiInitCPUAffinity(char **argv)
   }
 #endif
     /* get my ip address */
-  skt_ip_t myip = skt_my_ip();
+  myip = skt_my_ip();
 
     /* prepare a msg to send */
   msg = (hostnameMsg *)CmiAlloc(sizeof(hostnameMsg));