summaryrefslogtreecommitdiffstats
path: root/win/cat.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/cat.c')
-rw-r--r--win/cat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/win/cat.c b/win/cat.c
index 834461e..d413923 100644
--- a/win/cat.c
+++ b/win/cat.c
@@ -14,11 +14,11 @@
#include <string.h>
int
-main()
-{
+main(void)
+{
char buf[1024];
int n;
- char *err;
+ const char *err;
while (1) {
n = read(0, buf, sizeof(buf));
@@ -32,4 +32,3 @@ main()
return 0;
}
-