summaryrefslogtreecommitdiffstats
path: root/commands/cat.c
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-21 09:09:06 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-21 09:09:06 +0200
commit0dd68e795ed43c6826a110e3a46696c6473fbb42 (patch)
treeec890814857e7421022a72511d6db4ccfbc02e2f /commands/cat.c
parentc36aba610128168d32b04393dd14b2f8e35518cf (diff)
downloadbarebox-0dd68e795ed43c6826a110e3a46696c6473fbb42.tar.gz
- putc is now putchar for better standard conformity
- make printf return int
Diffstat (limited to 'commands/cat.c')
-rw-r--r--commands/cat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/cat.c b/commands/cat.c
index dd477c5..b126449 100644
--- a/commands/cat.c
+++ b/commands/cat.c
@@ -54,9 +54,9 @@ static int do_cat(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
while((ret = read(fd, buf, 1024)) > 0) {
for(i = 0; i < ret; i++) {
if (isprint(buf[i]) || buf[i] == '\n' || buf[i] == '\t')
- putc(buf[i]);
+ putchar(buf[i]);
else
- putc('.');
+ putchar('.');
}
if(ctrlc()) {
err = 1;