--- BlockOut/Utils.cpp.orig 2013-09-29 15:31:26.000000000 +1000 +++ BlockOut/Utils.cpp 2013-09-29 15:32:42.000000000 +1000 @@ -97,7 +97,8 @@ #ifdef LOCALTIME32 struct tm *ts = _localtime32((__time32_t *)&time); #else - struct tm *ts = localtime((time_t *)&time); + time_t t = time; + struct tm *ts = localtime(&t); #endif sprintf(ret,"%02d-%02d-%04d %02d:%02d:%02d",ts->tm_mday,ts->tm_mon+1,ts->tm_year+1900, ts->tm_hour,ts->tm_min,ts->tm_sec); @@ -120,7 +121,8 @@ #ifdef LOCALTIME32 struct tm *ts = _localtime32((__time32_t *)&time); #else - struct tm *ts = localtime((time_t *)&time); + time_t t = time; + struct tm *ts = localtime(&t); #endif sprintf(ret,"%02d-%02d-%04d",ts->tm_mday,ts->tm_mon+1,ts->tm_year+1900); } else { @@ -164,9 +166,7 @@ char *blockoutHome = getenv("BL2_HOME"); if( blockoutHome==NULL ) { - printf("BL2_HOME environement variable if not defined !\n"); - printf("Please set the BL2_HOME to the BlockOut II installation directory (ex: BL2_HOME=/usr/local/bl2).\n"); - return FALSE; + blockoutHome = "@PREFIX@/share/blockout2"; } strcpy( bl2Home , blockoutHome );