]> granicus.if.org Git - shadow/commitdiff
Remove unused variables.
authorNicolas François <nicolas.francois@centraliens.net>
Tue, 6 Aug 2013 18:59:52 +0000 (20:59 +0200)
committerNicolas François <nicolas.francois@centraliens.net>
Tue, 6 Aug 2013 18:59:52 +0000 (20:59 +0200)
* lib/subordinateio.c: Remove unused variables.

ChangeLog
lib/subordinateio.c

index 2b9e9b71846e0ee08caea3cd22d9887fc515b123..8f68bb620ca24aa90898980ce2499097c20781df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-06  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * lib/subordinateio.c: Remove unused variables.
+
 2013-08-06  Nicolas François  <nicolas.francois@centraliens.net>
 
        * man/login.defs.d/SUB_GID_COUNT.xml: Fix typo.
index 051fb9f13ee183e8ea21abf52ab54ee8becf4576..27a8f4abe814c6b36c5a354625b8457ab0bbb525 100644 (file)
@@ -144,9 +144,6 @@ static const bool range_exists(struct commonio_db *db, const char *owner)
        const struct subordinate_range *range;
        commonio_rewind(db);
        while ((range = commonio_next(db)) != NULL) {
-               unsigned long first = range->start;
-               unsigned long last = first + range->count - 1;
-
                if (0 == strcmp(range->owner, owner))
                        return true;
        }