]> granicus.if.org Git - shadow/commitdiff
* libmisc/addgrps.c: Fix warnings.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 14 Mar 2009 13:13:47 +0000 (13:13 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 14 Mar 2009 13:13:47 +0000 (13:13 +0000)
ChangeLog
libmisc/addgrps.c

index 620dfd939253dbe894a64288b5d5fa4732cc50b1..718b2a6ac763ef70eeb91771fffae7ebaf75951e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-03-14  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * libmisc/addgrps.c: Fix warnings.
+
 2009-03-14  Nicolas François  <nicolas.francois@centraliens.net>
 
        * man/po/fr.po: Added missing space.
index 0c75ee827db444cd142df8a1ef5295530ae8046d..8958107d056df6ffd39cbfbf9989aa89400dd555 100644 (file)
@@ -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 @@ int add_groups (const char *list)
        }
 
        if (added) {
-               return setgroups (ngroups, grouplist);
+               return setgroups ((size_t)ngroups, grouplist);
        }
 
        return 0;