diff options
author | Denys Vlasenko | 2011-05-16 12:21:31 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-05-16 12:21:31 +0200 |
commit | 9be4702a304863095d20181b5632ee7e0a4acdc4 (patch) | |
tree | a762d7482c1207417d0dee719ef4887b8f100b06 /include | |
parent | 9a296fbeab604c9b64189b02a79654ec0aa68130 (diff) | |
download | busybox-9be4702a304863095d20181b5632ee7e0a4acdc4.zip busybox-9be4702a304863095d20181b5632ee7e0a4acdc4.tar.gz |
main: free suid_config list after use
function old new delta
run_applet_no_and_exit 438 450 +12
ifupdown_main 2147 2149 +2
writeFileToTarball 1325 1326 +1
pidof_main 244 245 +1
last_main 896 897 +1
grep_main 779 780 +1
find_list_entry2 121 122 +1
tar_main 835 833 -2
llist_unlink 28 26 -2
llist_rev 23 21 -2
main 791 782 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 7/4 up/down: 19/-15) Total: 4 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 89e8e44..490462e 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -987,9 +987,13 @@ extern uint32_t option_mask32; extern uint32_t getopt32(char **argv, const char *applet_opts, ...) FAST_FUNC; +/* Having next pointer as a first member allows easy creation + * of "llist-compatible" structs, and using llist_FOO functions + * on them. + */ typedef struct llist_t { - char *data; struct llist_t *link; + char *data; } llist_t; void llist_add_to(llist_t **old_head, void *data) FAST_FUNC; void llist_add_to_end(llist_t **list_head, void *data) FAST_FUNC; |