]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: avoid 'devname' for BSD
authorEric Blake <eblake@redhat.com>
Thu, 29 Mar 2012 23:08:27 +0000 (17:08 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 29 Mar 2012 23:08:27 +0000 (17:08 -0600)
Commit 21b5daa1 was the last time we cleaned this up.

* tools/virt-host-validate-common.c (virHostValidateDevice):
Rename local variable.

tools/virt-host-validate-common.c

index bd118be0bff398069fc4f7b3587ada5008949a4e..066343ccf0cd039f9696a96929eeddeb6254a9a8 100644 (file)
@@ -113,13 +113,13 @@ void virHostMsgFail(virHostValidateLevel level,
 
 
 int virHostValidateDevice(const char *hvname,
-                          const char *devname,
+                          const char *dev_name,
                           virHostValidateLevel level,
                           const char *hint)
 {
-    virHostMsgCheck(hvname, "for device %s", devname);
+    virHostMsgCheck(hvname, "for device %s", dev_name);
 
-    if (access(devname, R_OK|W_OK) < 0) {
+    if (access(dev_name, R_OK|W_OK) < 0) {
         virHostMsgFail(level, hint);
         return -1;
     }