[Pkg-shadow-commits] r2901 - upstream/trunk/src

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Sun May 10 18:26:33 UTC 2009


Author: nekral-guest
Date: 2009-05-10 18:26:33 +0000 (Sun, 10 May 2009)
New Revision: 2901

Modified:
   upstream/trunk/src/useradd.c
Log:
Fix compilation warnings.


Modified: upstream/trunk/src/useradd.c
===================================================================
--- upstream/trunk/src/useradd.c	2009-05-10 18:21:58 UTC (rev 2900)
+++ upstream/trunk/src/useradd.c	2009-05-10 18:26:33 UTC (rev 2901)
@@ -547,7 +547,7 @@
 	 * 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 @@
 	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
 	 */




More information about the Pkg-shadow-commits mailing list