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");