svn commit: trunk/busybox/editors
aldot at busybox.net
aldot at busybox.net
Thu Mar 2 10:06:23 UTC 2006
Author: aldot
Date: 2006-03-02 02:06:22 -0800 (Thu, 02 Mar 2006)
New Revision: 14426
Log:
- silence warning about "'free_and_close_stuff' used but never defined"
Modified:
trunk/busybox/editors/sed.c
Changeset:
Modified: trunk/busybox/editors/sed.c
===================================================================
--- trunk/busybox/editors/sed.c 2006-03-02 09:44:32 UTC (rev 14425)
+++ trunk/busybox/editors/sed.c 2006-03-02 10:06:22 UTC (rev 14426)
@@ -122,9 +122,9 @@
};
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 @@
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. */
More information about the busybox-cvs
mailing list