]> git.ipfire.org Git - thirdparty/util-linux.git/commit
wall: fix OSX getgrouplist, gid_t* vs int*
authorKarel Zak <kzak@redhat.com>
Wed, 14 Jun 2017 09:53:43 +0000 (11:53 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 14 Jun 2017 09:53:43 +0000 (11:53 +0200)
commit098a75a18b3a8e2c6adc72a5e574b796435ee6cd
treea12e679ad60bc37c7ad71817de78248aaccfe330
parentbda267627e47081e7eed769e9cb437cefb54188b
wall: fix OSX getgrouplist, gid_t* vs int*

This was the compiler warning:

term-utils/wall.c:156:39: warning: passing 'gid_t *const' (aka 'unsigned int *const') to
parameter of type 'int *' converts between pointers to integer types with different sign
[-Wpointer-sign]
        rc = getgrouplist(login, pw->pw_gid, buf->groups, &ngroups);
                                             ^~~~~~~~~~~
/usr/include/unistd.h:653:43: note: passing argument to parameter here
int      getgrouplist(const char *, int, int *, int *);
                                              ^

Reported-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/wall.c