seatd: Explicit cast -1 to unsigned gid_t
Silences a warning on some architectures.
This commit is contained in:
parent
c9503ef35d
commit
8e1bf10d9d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue