summaryrefslogtreecommitdiff
path: root/auto-str.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2014-04-27 16:04:51 -0700
committerJohn Denker <jsd@av8n.com>2014-04-27 16:33:23 -0700
commit8e0679d9227c964d8df84bcb71054a4f14f72343 (patch)
treeee70210eb701bc604a1b6c577797c989f94fd0be /auto-str.c
parent97f3e615e5d634ca0b762193c0e87017d41584fd (diff)
get rid of some warnings
Diffstat (limited to 'auto-str.c')
-rw-r--r--auto-str.c14
1 files changed, 7 insertions, 7 deletions
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);
}