diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-02 10:06:22 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-02 10:06:22 +0000 |
commit | 7e725ab33fcc7329968b30a24f030d22a34e1b62 (patch) | |
tree | 5f78f5e8ebd6e57e87d9f6a49133d24e366a6ac7 | |
parent | a7b0e95a7b673f5516ffd646717979eadb6bc5b0 (diff) | |
download | busybox-w32-7e725ab33fcc7329968b30a24f030d22a34e1b62.tar.gz busybox-w32-7e725ab33fcc7329968b30a24f030d22a34e1b62.tar.bz2 busybox-w32-7e725ab33fcc7329968b30a24f030d22a34e1b62.zip |
- silence warning about "'free_and_close_stuff' used but never defined"
git-svn-id: svn://busybox.net/trunk/busybox@14426 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | editors/sed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/sed.c b/editors/sed.c index 726ebbd0c..32116fd29 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -122,9 +122,9 @@ struct append_list { | |||
122 | }; | 122 | }; |
123 | static struct append_list *append_head=NULL, *append_tail=NULL; | 123 | static struct append_list *append_head=NULL, *append_tail=NULL; |
124 | 124 | ||
125 | static void free_and_close_stuff(void); | 125 | void sed_free_and_close_stuff(void); |
126 | #if ENABLE_FEATURE_CLEAN_UP | 126 | #if ENABLE_FEATURE_CLEAN_UP |
127 | static void free_and_close_stuff(void) | 127 | void sed_free_and_close_stuff(void) |
128 | { | 128 | { |
129 | sed_cmd_t *sed_cmd = sed_cmd_head.next; | 129 | sed_cmd_t *sed_cmd = sed_cmd_head.next; |
130 | 130 | ||
@@ -1113,7 +1113,7 @@ extern int sed_main(int argc, char **argv) | |||
1113 | int status = EXIT_SUCCESS, opt, getpat = 1; | 1113 | int status = EXIT_SUCCESS, opt, getpat = 1; |
1114 | 1114 | ||
1115 | /* destroy command strings on exit */ | 1115 | /* destroy command strings on exit */ |
1116 | if (ENABLE_FEATURE_CLEAN_UP && atexit(free_and_close_stuff) == -1) | 1116 | if (ENABLE_FEATURE_CLEAN_UP && atexit(sed_free_and_close_stuff) == -1) |
1117 | bb_perror_msg_and_die("atexit"); | 1117 | bb_perror_msg_and_die("atexit"); |
1118 | 1118 | ||
1119 | /* Lie to autoconf when it starts asking stupid questions. */ | 1119 | /* Lie to autoconf when it starts asking stupid questions. */ |