mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
virlog: Fix build breaker with "comparison between signed and unsigned"
Refactor series 0b231195
worked with virLogDestination type which, depending
on the compiler, might be (and probably will be) an unsigned data type.
However, virEnumFromString may return -1 in case of an error. So, when enum
happens to be unsigned, some compilers will naturally complain about foo:
'if (foo < 0)'
This commit is contained in:
parent
bb2f63da79
commit
e6367dd408
@ -1088,7 +1088,7 @@ virLogParseOutput(const char *src)
|
||||
char *abspath = NULL;
|
||||
size_t count = 0;
|
||||
virLogPriority prio;
|
||||
virLogDestination dest;
|
||||
int dest;
|
||||
bool isSUID = virIsSUID();
|
||||
|
||||
if (!src)
|
||||
|
Loading…
Reference in New Issue
Block a user