diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-08 00:17:41 +0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-08 00:17:41 +0400 |
commit | 19008b83735341c91fa8a09a072ffe9816c9e423 (patch) | |
tree | 6e35288c247102998a775cbc16f9ec014e00e7fd /shell | |
parent | 4c5ad2fc90389bf1239f17d84967d07b82f31dd7 (diff) |
- reuse strings and messages. Saves about 600B
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 | ||||
-rw-r--r-- | shell/lash.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c index 5cdd7f006..962813dbd 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -8762,7 +8762,7 @@ procargs(int argc, char **argv) xminusc = minusc; if (*xargv == NULL) { if (xminusc) - sh_error("-c requires an argument"); + sh_error(bb_msg_requires_arg, "-c"); sflag = 1; } if (iflag == 2 && sflag == 1 && isatty(0) && isatty(1)) diff --git a/shell/lash.c b/shell/lash.c index b8ec8c66b..733b80cf5 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -284,7 +284,7 @@ static int builtin_fg_bg(struct child_prog *child) } } else { if (sscanf(child->argv[1], "%%%d", &jobnum) != 1) { - bb_error_msg("%s: bad argument '%s'", child->argv[0], child->argv[1]); + bb_error_msg(bb_msg_invalid_arg, child->argv[1], child->argv[0]); return EXIT_FAILURE; } for (job = child->family->job_list->head; job; job = job->next) { @@ -465,7 +465,7 @@ static int builtin_source(struct child_prog *child) static int builtin_unset(struct child_prog *child) { if (child->argv[1] == NULL) { - printf( "unset: parameter required.\n"); + printf(bb_msg_requires_arg, "unset"); return EXIT_FAILURE; } unsetenv(child->argv[1]); |