提交 63e08631 编写于 作者: E Eric Blake

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.
上级 a1e50e82
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册