Fix misc compile warnings

This commit is contained in:
Daniel P. Berrange
2008-06-12 13:48:29 +00:00
parent db162cb2b8
commit 841dd882a4
5 changed files with 15 additions and 7 deletions

View File

@@ -329,10 +329,7 @@ int virtTestMain(int argc,
int oomCount;
if ((debugStr = getenv("VIR_TEST_DEBUG")) != NULL) {
if (virStrToLong_i(debugStr, NULL, 10, &testDebug) < 0)
testDebug = 0;
if (testDebug < 0)
if (virStrToLong_ui(debugStr, NULL, 10, &testDebug) < 0)
testDebug = 0;
}