mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:03:48 +03:00
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…
x
Reference in New Issue
Block a user