SVN commit 926812 by coolo: fix compilation warnings M +1 -1 load.cpp M +1 -1 main.cpp --- trunk/icecream/daemon/load.cpp #926811:926812 @@ -203,7 +203,7 @@ #ifndef USE_SYSCTL static unsigned long int scan_one( const char* buff, const char *key ) { - char *b = strstr( buff, key ); + const char *b = strstr( buff, key ); if ( !b ) return 0; unsigned long int val = 0; --- trunk/icecream/daemon/main.cpp #926811:926812 @@ -619,7 +619,7 @@ #ifdef HAVE_SYS_VFS_H struct statfs buf; int ret = statfs(envbasedir.c_str(), &buf); - if (!ret && buf.f_bavail < (max_kids + 1 - current_kids) * 4 * 1024 * 1024 / buf.f_bsize) + if (!ret && long(buf.f_bavail) < long(max_kids + 1 - current_kids) * 4 * 1024 * 1024 / buf.f_bsize) msg.load = 1000; #endif