summary refs log tree commit diff
path: root/src/bltin
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2011-07-07 15:22:03 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2011-07-07 16:41:14 +0800
commita401e9df3df2951c0ec34406d723f6ad3c861afb (patch)
tree80e263bcb2d91410a8d89548fd9ffb75f3aa85d4 /src/bltin
parent[OUTPUT] Make outc an inline function (diff)
downloaddash-a401e9df3df2951c0ec34406d723f6ad3c861afb.tar.gz
dash-a401e9df3df2951c0ec34406d723f6ad3c861afb.zip
[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>
Diffstat (limited to 'src/bltin')
-rw-r--r--src/bltin/printf.c2
1 files changed, 1 insertions, 1 deletions
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);