]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
bhyve: Properly name bhyve help parsing function
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 7 Jun 2018 13:20:53 +0000 (17:20 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 7 Jun 2018 15:26:26 +0000 (19:26 +0400)
Currently there's a function called bhyveProbeCapsRTC_UTC() that
parses bhyve capabilities from the bhyve help output (bhyve -h).
Right now it only checks the '-u' flag, but as there will be more
features detectable through this help output, give it more general
name: bhyveProbeCapsFromHelp().

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/bhyve/bhyve_capabilities.c

index e13085b1d50ed7017bcba27bc916316e542e6fa6..49129e488064cfcad4f4bd64c02b422946937efb 100644 (file)
@@ -227,7 +227,7 @@ bhyveProbeCapsDeviceHelper(unsigned int *caps,
 }
 
 static int
-bhyveProbeCapsRTC_UTC(unsigned int *caps, char *binary)
+bhyveProbeCapsFromHelp(unsigned int *caps, char *binary)
 {
     char *help;
     virCommandPtr cmd = NULL;
@@ -314,7 +314,7 @@ virBhyveProbeCaps(unsigned int *caps)
     if (binary == NULL)
         goto out;
 
-    if ((ret = bhyveProbeCapsRTC_UTC(caps, binary)))
+    if ((ret = bhyveProbeCapsFromHelp(caps, binary)))
         goto out;
 
     if ((ret = bhyveProbeCapsAHCI32Slot(caps, binary)))