diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-30 23:16:47 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-30 23:16:47 +0200 |
commit | 8e1bf10d9decab347455b3036143b21d7f90d390 (patch) | |
tree | 38a8b5018c981328e645ab1f62177eb4f826fdef | |
parent | c9503ef35df3a5c4a0a34dcb937a84da47ff56ca (diff) |
seatd: Explicit cast -1 to unsigned gid_t
Silences a warning on some architectures.
-rw-r--r-- | seatd/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/seatd/client.c b/seatd/client.c index 87d6a91..d658454 100644 --- a/seatd/client.c +++ b/seatd/client.c @@ -42,7 +42,7 @@ static int get_peer(int fd, pid_t *pid, uid_t *uid, gid_t *gid) { } *pid = -1; *uid = cred.cr_uid; - *gid = cred.cr_ngroups > 0 ? cred.cr_groups[0] : -1; + *gid = cred.cr_ngroups > 0 ? cred.cr_groups[0] : (gid_t)-1; return 0; #else return -1; |