aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 22:51:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 22:51:00 +0000
commita41fdf331af344ecd3ec230a072857ea197e1890 (patch)
tree70ffff0b7f48b35a70b8b04253abe9118ded6026 /applets
parente935602ff5d5a45be56585b8bad44194c3e837a3 (diff)
downloadbusybox-w32-a41fdf331af344ecd3ec230a072857ea197e1890.tar.gz
busybox-w32-a41fdf331af344ecd3ec230a072857ea197e1890.tar.bz2
busybox-w32-a41fdf331af344ecd3ec230a072857ea197e1890.zip
preparatory patch for -Wwrite-strings #1
Diffstat (limited to 'applets')
-rw-r--r--applets/applets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/applets.c b/applets/applets.c
index a974743da..8a17cbf0b 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -106,7 +106,7 @@ static char *get_trimmed_slice(char *s, char *e)
106} 106}
107 107
108 108
109#define parse_error(x) { err=x; goto pe_label; } 109#define parse_error(x) do { errmsg = x; goto pe_label; } while(0)
110 110
111/* Don't depend on the tools to combine strings. */ 111/* Don't depend on the tools to combine strings. */
112static const char config_file[] = CONFIG_FILE; 112static const char config_file[] = CONFIG_FILE;
@@ -130,7 +130,7 @@ static void parse_config_file(void)
130 struct BB_suid_config *sct; 130 struct BB_suid_config *sct;
131 struct BB_applet *applet; 131 struct BB_applet *applet;
132 FILE *f; 132 FILE *f;
133 char *err; 133 const char *errmsg;
134 char *s; 134 char *s;
135 char *e; 135 char *e;
136 int i, lc, section; 136 int i, lc, section;
@@ -307,7 +307,7 @@ static void parse_config_file(void)
307 307
308 pe_label: 308 pe_label:
309 fprintf(stderr, "Parse error in %s, line %d: %s\n", 309 fprintf(stderr, "Parse error in %s, line %d: %s\n",
310 config_file, lc, err); 310 config_file, lc, errmsg);
311 311
312 fclose(f); 312 fclose(f);
313 /* Release any allocated memory before returning. */ 313 /* Release any allocated memory before returning. */