libvirt/a34e193f-statstest.patch

20 lines
604 B
Diff

commit a34e193fb7ac887bb25ac47450bae14dbc829cc8
Author: Jim Fehlig <jfehlig@novell.com>
Date: Thu Jul 7 10:15:05 2011 -0600
Fix compilation of statstest.c during make check
diff --git a/tests/statstest.c b/tests/statstest.c
index d18bb0c..c989992 100644
--- a/tests/statstest.c
+++ b/tests/statstest.c
@@ -17,7 +17,7 @@ static void testQuietError(void *userData ATTRIBUTE_UNUSED,
static int testDevice(const char *path, int expect)
{
- int actual = xenLinuxDomainDeviceID(NULL, 1, path);
+ int actual = xenLinuxDomainDeviceID(1, path);
if (actual == expect) {
return 0;