aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-01-03 13:51:14 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-06-13 05:49:23 +0200
commit320da0d6a1bfad5bad24600da763cdeabd30c5ba (patch)
tree326671a082632fe62906e8f9f8e8f1d64fea3264
parent2fcbc805997630e533d2e85bd89291546b0e4398 (diff)
downloadsparse-dev-320da0d6a1bfad5bad24600da763cdeabd30c5ba.tar.gz
ptrlist: remove now unneeded add_ptr_list_notag()
Since add_ptr_list_notag() is now simply a define to add_ptr_list() it's not anymore really needed and can be removed. Remove add_ptr_list_notag()'s definition and replace its only call by a call to add_ptr_list(). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--lib.c2
-rw-r--r--ptrlist.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/lib.c b/lib.c
index 4692fe6d..41235e55 100644
--- a/lib.c
+++ b/lib.c
@@ -1352,7 +1352,7 @@ struct symbol_list *sparse_initialize(int argc, char **argv, struct string_list
args = handle_switch(arg+1, args);
continue;
}
- add_ptr_list_notag(filelist, arg);
+ add_ptr_list(filelist, arg);
}
handle_switch_W_finalize();
handle_switch_v_finalize();
diff --git a/ptrlist.h b/ptrlist.h
index f3902a73..9ab3047e 100644
--- a/ptrlist.h
+++ b/ptrlist.h
@@ -57,8 +57,6 @@ extern int linearize_ptr_list(struct ptr_list *, void **, int);
MKTYPE(*(list), (CHECK_TYPE(*(list),(entry)),__add_ptr_list_tag((struct ptr_list **)(list), (entry), (tag))))
#define add_ptr_list(list,entry) \
MKTYPE(*(list), (CHECK_TYPE(*(list),(entry)),__add_ptr_list((struct ptr_list **)(list), (entry))))
-#define add_ptr_list_notag(list,entry) \
- add_ptr_list(list, entry)
#define free_ptr_list(list) \
do { VRFY_PTR_LIST(*(list)); __free_ptr_list((struct ptr_list **)(list)); } while (0)