summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'libstore')
-rw-r--r--libstore/kids.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libstore/kids.c b/libstore/kids.c
index ee00ace4..1b9fa367 100644
--- a/libstore/kids.c
+++ b/libstore/kids.c
@@ -1,6 +1,6 @@
/* Managing sub-stores
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
This file is part of the GNU Hurd.
@@ -118,8 +118,8 @@ store_set_child_flags (struct store *store, int flags)
}
if (err)
- while (i > 0)
- store_clear_flags (store->children[--i], flags & ~old_child_flags[i]);
+ while (i-- > 0)
+ store_clear_flags (store->children[i], flags & ~old_child_flags[i]);
else
store->flags |= flags;
@@ -142,8 +142,8 @@ store_clear_child_flags (struct store *store, int flags)
}
if (err)
- while (i > 0)
- store_set_flags (store->children[--i], flags & ~old_child_flags[i]);
+ while (i-- > 0)
+ store_set_flags (store->children[i], flags & ~old_child_flags[i]);
else
store->flags &= ~flags;