]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: fix bitmap conversion when !CPU_ALLOC
authorEric Blake <eblake@redhat.com>
Mon, 1 Oct 2012 23:00:58 +0000 (17:00 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 1 Oct 2012 23:08:04 +0000 (17:08 -0600)
Commit f1a43a8 missed one side of an #if/#else.

* src/util/processinfo.c (virProcessInfoGetAffinity): Use correct
bitmap operation.

src/util/processinfo.c

index d9d255cd7750750a926a1ad5896b47dfcfce7675..d4f8f4b672b98bada24d20fe6562574c5c6cbc1b 100644 (file)
@@ -161,7 +161,7 @@ realloc:
 
     for (i = 0 ; i < maxcpu ; i++)
         if (CPU_ISSET(i, &mask))
-            VIR_USE_CPU(map, i);
+            ignore_value(virBitmapSetBit(*map, i));
 # endif
 
     return 0;