Use BB_FEATURE_CLEAN_UP where appropriate

-Erik
This commit is contained in:
Eric Andersen
2000-07-25 18:01:20 +00:00
parent b9ea02c04b
commit b040d4f3da
12 changed files with 48 additions and 14 deletions

4
sed.c
View File

@@ -92,7 +92,7 @@ static int ncmds = 0; /* number of sed commands */
/*static char *cur_file = NULL;*/ /* file currently being processed XXX: do I need this? */
#if 0
#ifdef BB_FEATURE_CLEAN_UP
static void destroy_cmd_strs()
{
if (sed_cmds == NULL)
@@ -663,7 +663,7 @@ extern int sed_main(int argc, char **argv)
{
int opt;
#if 0
#ifdef BB_FEATURE_CLEAN_UP
/* destroy command strings on exit */
if (atexit(destroy_cmd_strs) == -1) {
perror("sed");