replace unnecessary use of FOREACH_SAFE with FOREACH
diff --git a/lib/object_idset.c b/lib/object_idset.c
index 58f89bf..4883efe 100644
--- a/lib/object_idset.c
+++ b/lib/object_idset.c
@@ -180,12 +180,11 @@ got_object_idset_contains(struct got_object_idset *set,
void got_object_idset_for_each(struct got_object_idset *set,
void (*cb)(struct got_object_id *, void *))
{
- struct got_object_idset_element *entry, *tmp;
+ struct got_object_idset_element *entry;
int i;
for (i = 0; i < nitems(set->entries); i++) {
- TAILQ_FOREACH_SAFE(entry, &set->entries[i], entry, tmp) {
+ TAILQ_FOREACH(entry, &set->entries[i], entry)
cb(&entry->id, entry->data);
- }
}
}