From: Jim Meyering Date: Sat, 14 Sep 2002 07:45:53 +0000 (+0000) Subject: (print_full_info, print_group_list): Add casts to avoid X-Git-Tag: v4.5.2~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c81581d5c395f077bc681612857ee8cff3fcd6cf;p=thirdparty%2Fcoreutils.git (print_full_info, print_group_list): Add casts to avoid warnings about `signed and unsigned type in conditional expression'. --- diff --git a/src/id.c b/src/id.c index 4044b03833..c9a9d8bdaa 100644 --- a/src/id.c +++ b/src/id.c @@ -308,7 +308,8 @@ print_group_list (const char *username) GETGROUPS_T *groups; register int i; - if (xgetgroups (username, pwd ? pwd->pw_gid : -1, &n_groups, &groups)) + if (xgetgroups (username, (pwd ? pwd->pw_gid : (gid_t) -1), + &n_groups, &groups)) { ++problems; return; @@ -373,7 +374,8 @@ print_full_info (const char *username) GETGROUPS_T *groups; register int i; - if (xgetgroups (username, pwd ? pwd->pw_gid : -1, &n_groups, &groups)) + if (xgetgroups (username, (pwd ? pwd->pw_gid : (gid_t) -1), + &n_groups, &groups)) { ++problems; return;