[Pkg-shadow-commits] r2515 - in upstream/trunk: . libmisc

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sat Mar 14 13:13:47 UTC 2009


Author: nekral-guest
Date: 2009-03-14 13:13:47 +0000 (Sat, 14 Mar 2009)
New Revision: 2515

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/addgrps.c
Log:
	* libmisc/addgrps.c: Fix warnings.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-03-14 13:08:49 UTC (rev 2514)
+++ upstream/trunk/ChangeLog	2009-03-14 13:13:47 UTC (rev 2515)
@@ -1,5 +1,9 @@
 2009-03-14  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* libmisc/addgrps.c: Fix warnings.
+
+2009-03-14  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* man/po/fr.po: Added missing space.
 
 2009-03-14  Nicolas François  <nicolas.francois at centraliens.net>

Modified: upstream/trunk/libmisc/addgrps.c
===================================================================
--- upstream/trunk/libmisc/addgrps.c	2009-03-14 13:08:49 UTC (rev 2514)
+++ upstream/trunk/libmisc/addgrps.c	2009-03-14 13:13:47 UTC (rev 2515)
@@ -2,7 +2,7 @@
  * Copyright (c) 1989 - 1994, Julianne Frances Haugh
  * Copyright (c) 1996 - 1998, Marek Michałkiewicz
  * Copyright (c) 2001 - 2006, Tomasz Kłoczko
- * Copyright (c) 2007 - 2008, Nicolas François
+ * Copyright (c) 2007 - 2009, Nicolas François
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -52,7 +52,8 @@
 int add_groups (const char *list)
 {
 	GETGROUPS_T *grouplist, *tmp;
-	int i, ngroups;
+	unsigned int i;
+	int ngroups;
 	bool added;
 	char *token;
 	char buf[1024];
@@ -114,7 +115,7 @@
 	}
 
 	if (added) {
-		return setgroups (ngroups, grouplist);
+		return setgroups ((size_t)ngroups, grouplist);
 	}
 
 	return 0;




More information about the Pkg-shadow-commits mailing list