diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2023-11-19 21:47:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-19 21:47:34 +0200 |
commit | db61be1897ffe8f4d1a72bed62c8c892d06a1983 (patch) | |
tree | 55372b2fd05926de9c0c6c35acb0554b144ae107 /src/usermap.c | |
parent | 1fdf240aec17b6525ee2ebc76152ea8109f83595 (diff) | |
parent | 1136f5bd18ce5b1657347dc26b0aa8e3153786ce (diff) | |
download | bindfs-db61be1897ffe8f4d1a72bed62c8c892d06a1983.tar.gz |
Merge pull request #148 from hartwork/fix-warnings
Fix compile warnings (including a serious one) + cover FUSE 2 in CI + add `-Wextra` to `configure.ac`
Diffstat (limited to 'src/usermap.c')
-rw-r--r-- | src/usermap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usermap.c b/src/usermap.c index f745e74..eb7b61c 100644 --- a/src/usermap.c +++ b/src/usermap.c @@ -52,7 +52,7 @@ UsermapStatus usermap_add_uid(UserMap *map, uid_t from, uid_t to) map->user_from = (uid_t*)realloc(map->user_from, map->user_capacity * sizeof(uid_t)); map->user_to = (uid_t*)realloc(map->user_to, map->user_capacity * sizeof(uid_t)); } - if (usermap_get_uid_or_default(map, from, -1) != -1) { + if (usermap_get_uid_or_default(map, from, -1) != (uid_t)-1) { return usermap_status_duplicate_key; } i = map->user_size; @@ -77,7 +77,7 @@ UsermapStatus usermap_add_gid(UserMap *map, gid_t from, gid_t to) map->group_from = (gid_t*)realloc(map->group_from, map->group_capacity * sizeof(gid_t)); map->group_to = (gid_t*)realloc(map->group_to, map->group_capacity * sizeof(gid_t)); } - if (usermap_get_gid_or_default(map, from, -1) != -1) { + if (usermap_get_gid_or_default(map, from, -1) != (gid_t)-1) { return usermap_status_duplicate_key; } i = map->group_size; |