diff options
author | powwow@askgustav.com <powwow@askgustav.com> | 2019-03-18 23:05:26 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2019-04-23 20:37:05 (GMT) |
commit | 304a722c426f47a461dc88c4493f800c0690b29b (patch) | |
tree | 151b974354c0c7ec4e89649a949db32f11b56442 /follow.c | |
parent | 7db984561ef8fd0ff9165288324dbc81516113f0 (diff) | |
download | powwow-304a722c426f47a461dc88c4493f800c0690b29b.zip powwow-304a722c426f47a461dc88c4493f800c0690b29b.tar.gz powwow-304a722c426f47a461dc88c4493f800c0690b29b.tar.bz2 |
remove some non-ANSI C support
Diffstat (limited to 'follow.c')
-rw-r--r-- | follow.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ /* * follow.c -- interactively print an ASCII file. - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -135,8 +135,8 @@ int main(int argc, char *argv[]) { FILE *f; char c = 0, buf[512]; int d; - - if (argc < 2) { + + if (argc < 2) { fprintf(stderr, "needed a file name\n"); exit(0); } @@ -145,7 +145,7 @@ int main(int argc, char *argv[]) { fprintf(stderr, "unable to open %s\n", argv[1]); exit(0); } - + set_terminal(); while(c!=0x1b) { read(0, &c, 1); |