diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-12-10 10:47:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:05:51 -0700 |
commit | 105f3530d45906ff3789447182bd0d8853eff800 (patch) | |
tree | 021f47b57de7fd4170907b62898e883be10675ee /lib.h | |
parent | PHI pseudos aren't supposed to show up on the liveness (diff) | |
download | sparse-105f3530d45906ff3789447182bd0d8853eff800.tar.gz sparse-105f3530d45906ff3789447182bd0d8853eff800.tar.bz2 sparse-105f3530d45906ff3789447182bd0d8853eff800.zip |
When removing/replacing pointer list entries, return the final
count.
The caller want to know how many got removed if they didn't
specify an exact count to begin with.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -87,8 +87,8 @@ struct ptr_list { #define ptr_list_empty(x) ((x) == NULL) void * delete_ptr_list_last(struct ptr_list **head); -void delete_ptr_list_entry(struct ptr_list **, void *, int); -void replace_ptr_list_entry(struct ptr_list **, void *old, void *new, int); +int delete_ptr_list_entry(struct ptr_list **, void *, int); +int replace_ptr_list_entry(struct ptr_list **, void *old, void *new, int); extern void sort_list(struct ptr_list **, int (*)(const void *, const void *)); extern void **__add_ptr_list(struct ptr_list **, void *, unsigned long tag); |