Commit 2ac1cc67 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

cmdlinenv00 test: fix for clang

clang complains:
> cmdlinenv00.c:35:11: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
>                 if (ret < 0) {
>                     ~~~ ^ ~

The fix is to use ssize_t not size_t.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 2479c25d
...@@ -21,7 +21,7 @@ TEST_OPTION(arg3, string, "arg3", 1); ...@@ -21,7 +21,7 @@ TEST_OPTION(arg3, string, "arg3", 1);
static void read_from_proc(const char *path, char *buf, size_t size) static void read_from_proc(const char *path, char *buf, size_t size)
{ {
size_t r = 0, ret; ssize_t r = 0, ret;
int fd; int fd;
fd = open(path, O_RDONLY); fd = open(path, O_RDONLY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment