From: nekral-guest Date: Sun, 10 May 2009 18:26:33 +0000 (+0000) Subject: Fix compilation warnings. X-Git-Tag: 4.1.4~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a96a8861dd86b5a6a86e375162fb65456f828090;p=shadow Fix compilation warnings. --- diff --git a/src/useradd.c b/src/useradd.c index 9bc81b38..632db571 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -547,7 +547,7 @@ static int set_defaults (void) * Rename the current default file to its backup name. */ wlen = snprintf (buf, sizeof buf, "%s-", def_file); - assert (wlen < sizeof buf); + assert (wlen < (int) sizeof buf); if ((rename (def_file, buf) != 0) && (ENOENT != errno)) { int err = errno; fprintf (stderr, @@ -1862,7 +1862,7 @@ int main (int argc, char **argv) OPENLOG ("useradd"); sys_ngroups = sysconf (_SC_NGROUPS_MAX); - user_groups = xmalloc ((1 + sys_ngroups) * sizeof (char *)); + user_groups = (char **) xmalloc ((1 + sys_ngroups) * sizeof (char *)); /* * Initialize the list to be empty */