aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2008-06-12 13:48:29 +0000
committerDaniel P. Berrange <berrange@redhat.com>2008-06-12 13:48:29 +0000
commit841dd882a4b2fc8e8e6213349dcb99a6c5364e1b (patch)
tree088eb6b0c3a04867cf4996aeb8ced290c58ce793 /tests/testutils.c
parentFix saving of iptables rules (diff)
downloadlibvirt-841dd882a4b2fc8e8e6213349dcb99a6c5364e1b.tar.gz
libvirt-841dd882a4b2fc8e8e6213349dcb99a6c5364e1b.tar.bz2
libvirt-841dd882a4b2fc8e8e6213349dcb99a6c5364e1b.zip
Fix misc compile warnings
Diffstat (limited to 'tests/testutils.c')
-rw-r--r--tests/testutils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/testutils.c b/tests/testutils.c
index d998d1fdf..3a799d695 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -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;
}