mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-24 04:12:20 +00:00
build: avoid 'devname' for BSD
Commit 21b5daa1 was the last time we cleaned this up. * tools/virt-host-validate-common.c (virHostValidateDevice): Rename local variable.
This commit is contained in:
parent
a1e50e820b
commit
63e086310f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user