From: jihoonl Date: Fri, 8 Jan 2010 00:56:26 +0000 (+0000) Subject: error fix X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6f80f4b1f493e22c96df3181c32d635679c2acc8;p=IRC.git error fix --- diff --git a/Robust/src/Runtime/DSTM/interface_recovery/trans.c b/Robust/src/Runtime/DSTM/interface_recovery/trans.c index 2c311720..fac3777b 100644 --- a/Robust/src/Runtime/DSTM/interface_recovery/trans.c +++ b/Robust/src/Runtime/DSTM/interface_recovery/trans.c @@ -117,8 +117,8 @@ int paxosRound; * Global variables for Recovery stats **************************************/ int numRecovery=0; -unsigned int deadMachine[8]={0,0,0,0,0,0,0,0}; -unsigned double elapsedTime[8] ={0,0,0,0,0,0,0,0}; +unsigned int deadMachine[8] ={ 0,0,0,0,0,0,0,0}; +double elapsedTime[8] = {0,0,0,0,0,0,0,0}; #endif #endif diff --git a/Robust/src/Runtime/runtime.c b/Robust/src/Runtime/runtime.c index ab12a978..722b2dfd 100644 --- a/Robust/src/Runtime/runtime.c +++ b/Robust/src/Runtime/runtime.c @@ -16,7 +16,7 @@ extern int numRecovery; extern unsigned int deadMachine[8]; extern unsigned int sizeOfRedupedData[8]; - extern double elapsedtime[8]; + extern double elapsedTime[8]; #endif #else @@ -232,9 +232,9 @@ void CALL02(___System______deepArrayCopy____L___Object____L___Object___, struct void CALL11(___System______exit____I,int ___status___, int ___status___) { #ifdef RECOVERYSTATS - for(int i=0; i < numRecovery; i++) { - printf("Dead Machine = %s\n",midtoIPString(deadThread[i])); - printf("sizeOfRedupedData = %u\n",sizeOfRedupedData[i]); + int i=0; + for(i=0; i < numRecovery; i++) { + printf("Dead Machine = %s\n",midtoIPString(deadMachine[i])); printf("Elapsed Time = %.2f\n",elapsedTime[i]); } #endif