mirror of https://gitee.com/openkylin/libvirt.git
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: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
55111f3508
commit
74fad50de4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue