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/mystring.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mystring.h') diff --git a/src/mystring.h b/src/mystring.h index 477cd16..2e0540a 100644 --- a/src/mystring.h +++ b/src/mystring.h @@ -48,6 +48,7 @@ extern const char homestr[]; void scopyn(const char *, char *, int); #endif char *prefix(const char *, const char *); +void badnum(const char *s) __attribute__ ((noreturn)); intmax_t atomax(const char *, int); intmax_t atomax10(const char *); int number(const char *); -- cgit 1.4.1