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:
Peter Krempa 2018-05-07 17:12:26 +02:00
parent 55111f3508
commit 74fad50de4

View File

@ -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;