提交 74fad50d 编写于 作者: P Peter Krempa

util: file: Fix usage of STRPREFIX in virFileIsCDROM

STRPREFIX takes only two arguments, but the code it was adapted from
used function with 3 arguments.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
上级 55111f35
......@@ -1982,8 +1982,8 @@ virFileIsCDROM(const char *path)
int
virFileIsCDROM(const char *path)
{
if (STRPREFIX(path, "/dev/cd", NULL) ||
STRPREFIX(path, "/dev/acd", NULL))
if (STRPREFIX(path, "/dev/cd") ||
STRPREFIX(path, "/dev/acd"))
return 1;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册