From 8b1e558b88d9952874fbda8ce5463d8d4b7f607a Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Wed, 24 May 2017 09:06:46 +0800 Subject: [PATCH] fix 'comparison of unsigned expression < 0' fix #310 Signed-off-by: Lai Jiangshan --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index ae941a9e..77b4f22d 100644 --- a/src/util.c +++ b/src/util.c @@ -239,7 +239,7 @@ int hyper_getgrouplist(const char *user, gid_t group, gid_t *groups, int *ngroup int hyper_write_file(const char *path, const char *value, size_t len) { - size_t size = 0, l; + ssize_t size = 0, l; int fd = open(path, O_WRONLY); if (fd < 0) { perror("open file failed");