]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
util: process: fix build on FreeBSD
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 8 Jun 2015 07:13:41 +0000 (11:13 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 8 Jun 2015 07:27:39 +0000 (11:27 +0400)
Commit 825df8c3 refactored virProcess{Set,Get}Affinity routines,
however broke BSD implementation because of the incorrect variable
name. Fix build by using a proper variable name.

Pushing as trivial and build break fix.

src/util/virprocess.c

index a38cb756a888332f9750af28c960b81dd693825a..59598edf5a3171464bcd4421ab7f76576774540f 100644 (file)
@@ -566,7 +566,7 @@ virProcessGetAffinity(pid_t pid)
         return NULL;
     }
 
-    if (!(*map = virBitmapNew(sizeof(mask) * 8)))
+    if (!(ret = virBitmapNew(sizeof(mask) * 8)))
         return NULL;
 
     for (i = 0; i < sizeof(mask) * 8; i++)