From a401e9df3df2951c0ec34406d723f6ad3c861afb Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 7 Jul 2011 15:22:03 +0800 Subject: [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 --- src/bltin/printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bltin/printf.c b/src/bltin/printf.c index b0c3774..893295c 100644 --- a/src/bltin/printf.c +++ b/src/bltin/printf.c @@ -443,7 +443,7 @@ echocmd(int argc, char **argv) } do { - char c; + int c; nonl += conv_escape_str(*argv); outstr(stackblock(), outs); -- cgit 1.4.1