X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fiterator.c;h=92ceb7ba5d5e2a137ad4085f733f53ba48da90bc;hb=3e889332cb054e5cee1a12bba6dd0209121100cf;hp=6ad5dfcb74c0d86304da6f55027a5e1be9e491f9;hpb=e763723f6ba20528fc96671430d8e78204658d11;p=libfirm diff --git a/ir/adt/iterator.c b/ir/adt/iterator.c index 6ad5dfcb7..92ceb7ba5 100644 --- a/ir/adt/iterator.c +++ b/ir/adt/iterator.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -23,9 +23,7 @@ * @author Sebastian Hack * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #include @@ -36,13 +34,13 @@ static void *it_pset_start(void *collection) { - return pset_first(collection); + return pset_first((pset*) collection); } static void *it_pset_next(void *collection, void *curr) { (void) curr; - return pset_next(collection); + return pset_next((pset*) collection); } static void it_pset_finish(void *collection, void *curr) @@ -63,8 +61,8 @@ const iterator_t *pset_iterator = &iterator_pset; static void *it_list_next(void *coll, void *it) { - struct list_head *head = coll; - struct list_head *curr = it; + struct list_head *head = (list_head*) coll; + struct list_head *curr = (list_head*) it; return curr->next != head ? curr->next : NULL; }