From d15aba899e3779eb8d2c9843c1d1d5b3efbfc20e Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Wed, 17 Oct 2007 12:51:08 +0800 Subject: [SHELL] Replace shared illnum message by badnum function. This patch adds the badnum function and uses it to mostly replace the use of illnum except in miscbltin where the current code turns out to be smaller because of the twin sh_error calls. --- src/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/eval.c') diff --git a/src/eval.c b/src/eval.c index 1e0edd9..17b558d 100644 --- a/src/eval.c +++ b/src/eval.c @@ -1028,7 +1028,7 @@ breakcmd(int argc, char **argv) int n = argc > 1 ? number(argv[1]) : 1; if (n <= 0) - sh_error(illnum, argv[1]); + badnum(argv[1]); if (n > loopnest) n = loopnest; if (n > 0) { -- cgit 1.4.1