Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit d1187bb

Browse files
authored
Merge pull request #311 from laijs/fix-clang-compile
fix 'comparison of unsigned expression < 0'
2 parents faef420 + 8b1e558 commit d1187bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ int hyper_getgrouplist(const char *user, gid_t group, gid_t *groups, int *ngroup
239239

240240
int hyper_write_file(const char *path, const char *value, size_t len)
241241
{
242-
size_t size = 0, l;
242+
ssize_t size = 0, l;
243243
int fd = open(path, O_WRONLY);
244244
if (fd < 0) {
245245
perror("open file failed");

0 commit comments

Comments
 (0)