From 8e0679d9227c964d8df84bcb71054a4f14f72343 Mon Sep 17 00:00:00 2001 From: John Denker Date: Sun, 27 Apr 2014 16:04:51 -0700 Subject: get rid of some warnings --- auto-str.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'auto-str.c') diff --git a/auto-str.c b/auto-str.c index acc3d60..b52d8b3 100644 --- a/auto-str.c +++ b/auto-str.c @@ -5,7 +5,7 @@ char buf1[256]; substdio ss1 = SUBSTDIO_FDBUF(write,1,buf1,sizeof(buf1)); -void puts(s) +void myputs(s) char *s; { if (substdio_puts(&ss1,s) == -1) _exit(111); @@ -25,20 +25,20 @@ char **argv; value = argv[2]; if (!value) _exit(100); - puts("char "); - puts(name); - puts("[] = \"\\\n"); + myputs("char "); + myputs(name); + myputs("[] = \"\\\n"); while (ch = *value++) { - puts("\\"); + myputs("\\"); octal[3] = 0; octal[2] = '0' + (ch & 7); ch >>= 3; octal[1] = '0' + (ch & 7); ch >>= 3; octal[0] = '0' + (ch & 7); - puts(octal); + myputs(octal); } - puts("\\\n\";\n"); + myputs("\\\n\";\n"); if (substdio_flush(&ss1) == -1) _exit(111); _exit(0); } -- cgit v1.2.3