[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>
diff --git a/ChangeLog b/ChangeLog
index ade43e9..2093fc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2011-07-07 Herbert Xu <herbert@gondor.apana.org.au>
* Optimize dash -c "command" to avoid a fork.
+ * Eliminate unnecessary promotion in echocmd.
2011-05-22 Jonathan Nieder <jrnieder@gmail.com>
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 @@
}
do {
- char c;
+ int c;
nonl += conv_escape_str(*argv);
outstr(stackblock(), outs);