diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2011-07-07 15:22:03 +0800 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2012-07-02 10:44:00 +0200 |
commit | 6f235a75b71121b368976b2d931472cc918e9499 (patch) | |
tree | ec03cbb9fe5fc410a0f43c9d75ab4b884f547f00 | |
parent | 8ce54e2a6adb82cbbb988e1f335fa5ebf370f6c5 (diff) | |
download | klibc-6f235a75b71121b368976b2d931472cc918e9499.tar.gz |
[klibc] [BUILTIN] Eliminate unnecessary promotion in echocmd
The patch to make outc into an inline function created an unnecessary
promotion in echocmd due to its use of char vs. the int used by outc.
This patch changes echocmd to use int instead.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/dash/bltin/printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/dash/bltin/printf.c b/usr/dash/bltin/printf.c index 8efcbe37f2bc0..b32b54f8fff4f 100644 --- a/usr/dash/bltin/printf.c +++ b/usr/dash/bltin/printf.c @@ -449,7 +449,7 @@ echocmd(int argc, char **argv) } do { - char c; + int c; nonl += conv_escape_str(*argv); outstr(stackblock(), outs); |