diff options
| author | Arthur de Jong <arthur@arthurdejong.org> | 2013-10-29 20:01:30 +0100 |
|---|---|---|
| committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-10-29 23:20:01 +0100 |
| commit | f8af48faa18b6d9017ea64f4df2d6ee2b1743df3 (patch) | |
| tree | c27c3d3932b850c65854ca4b855fbb68d262207b /nss/group.c | |
| parent | 88801f9e5a01e580adae4f386c0c755fb2a17b79 (diff) | |
Fix a number of compiler warnings
This includes a number of small fixes for issues that were formerly
masked by the incorrect AC_LANG_PROGRAM check.
Diffstat (limited to 'nss/group.c')
| -rw-r--r-- | nss/group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/group.c b/nss/group.c index c00b086..5945718 100644 --- a/nss/group.c +++ b/nss/group.c @@ -194,7 +194,7 @@ static char *group2str(struct group *result, char *buffer, size_t buflen) int res, i; res = snprintf(buffer, buflen, "%s:%s:%d:", result->gr_name, result->gr_passwd, (int)result->gr_gid); - if ((res < 0) || (res >= buflen)) + if ((res < 0) || (res >= (int)buflen)) return NULL; if (result->gr_mem) for (i = 0; result->gr_mem[i]; i++) |
