summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-03-02 10:06:22 +0000
committerBernhard Reutner-Fischer2006-03-02 10:06:22 +0000
commitc0bb308389d448d7564ac6034edbbb117b4744fc (patch)
tree5f78f5e8ebd6e57e87d9f6a49133d24e366a6ac7
parentcfc5d860e6b0c6120deae965cf991c0810d915cc (diff)
downloadbusybox-c0bb308389d448d7564ac6034edbbb117b4744fc.zip
busybox-c0bb308389d448d7564ac6034edbbb117b4744fc.tar.gz
- silence warning about "'free_and_close_stuff' used but never defined"
-rw-r--r--editors/sed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 726ebbd..32116fd 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -122,9 +122,9 @@ struct append_list {
};
static struct append_list *append_head=NULL, *append_tail=NULL;
-static void free_and_close_stuff(void);
+void sed_free_and_close_stuff(void);
#if ENABLE_FEATURE_CLEAN_UP
-static void free_and_close_stuff(void)
+void sed_free_and_close_stuff(void)
{
sed_cmd_t *sed_cmd = sed_cmd_head.next;
@@ -1113,7 +1113,7 @@ extern int sed_main(int argc, char **argv)
int status = EXIT_SUCCESS, opt, getpat = 1;
/* destroy command strings on exit */
- if (ENABLE_FEATURE_CLEAN_UP && atexit(free_and_close_stuff) == -1)
+ if (ENABLE_FEATURE_CLEAN_UP && atexit(sed_free_and_close_stuff) == -1)
bb_perror_msg_and_die("atexit");
/* Lie to autoconf when it starts asking stupid questions. */