From a9819b290848e0a760f3805d5937fa050235d707 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Fri, 22 Dec 2000 01:48:07 +0000 Subject: Use busybox error handling functions wherever possible. --- sed.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sed.c') diff --git a/sed.c b/sed.c index a7152e52a..341924d6b 100644 --- a/sed.c +++ b/sed.c @@ -709,10 +709,8 @@ extern int sed_main(int argc, char **argv) #ifdef BB_FEATURE_CLEAN_UP /* destroy command strings on exit */ - if (atexit(destroy_cmd_strs) == -1) { - perror("sed"); - exit(1); - } + if (atexit(destroy_cmd_strs) == -1) + perror_msg_and_die("atexit"); #endif /* do normal option parsing */ -- cgit v1.2.3