提交 e6367dd4 编写于 作者: E Erik Skultety

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)'
上级 bb2f63da
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册