From 0c97c9d43707da745fe2bc62ab2a69497ceaf666 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 1 Oct 2007 11:58:38 +0000 Subject: 'simple' error message functions by Loic Grenie . 263 bytes saved. --- networking/httpd.c | 2 +- networking/inetd.c | 2 +- networking/netstat.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'networking') diff --git a/networking/httpd.c b/networking/httpd.c index c8fbefd5a..06a5a56bc 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -504,7 +504,7 @@ static void parse_conf(const char *path, int flag) return; } if (configFile && flag == FIRST_PARSE) /* if -c option given */ - bb_perror_msg_and_die("%s", cf); + bb_simple_perror_msg_and_die(cf); flag = FIND_FROM_HTTPD_ROOT; cf = httpd_conf; } diff --git a/networking/inetd.c b/networking/inetd.c index b16427882..6d72e13e8 100644 --- a/networking/inetd.c +++ b/networking/inetd.c @@ -983,7 +983,7 @@ static void config(int sig ATTRIBUTE_UNUSED) char protoname[10]; if (!setconfig()) { - bb_perror_msg("%s", config_filename); + bb_simple_perror_msg(config_filename); return; } for (sep = servtab; sep; sep = sep->se_next) diff --git a/networking/netstat.c b/networking/netstat.c index 5bacb47cc..e5ed10eb4 100644 --- a/networking/netstat.c +++ b/networking/netstat.c @@ -464,7 +464,7 @@ static void do_info(const char *file, const char *name, void (*proc)(int, const procinfo = fopen(file, "r"); if (procinfo == NULL) { if (errno != ENOENT) { - bb_perror_msg("%s", file); + bb_simple_perror_msg(file); } else { bb_error_msg("no support for '%s' on this system", name); } -- cgit v1.2.3