* Fixed some K&R stuff in mkindex.c.

git-svn-id: svn://svn.zoy.org/elk/trunk@94 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2003-09-04 15:33:02 +00:00
parent 82a9a039c9
commit 0eedb9a8b7
1 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ char buf[10000];
long line; long line;
char *fn; char *fn;
main(ac, av) char **av; { main(int ac, char **av) {
FILE *fp; FILE *fp;
if (ac < 2) { if (ac < 2) {
@ -54,7 +54,7 @@ main(ac, av) char **av; {
return 0; return 0;
} }
doit(fp) FILE *fp; { doit(FILE *fp) {
char *p, *q, *start, *macro; char *p, *q, *start, *macro;
char inx[1000], arg[1000]; char inx[1000], arg[1000];
int n, need_nl = 0; int n, need_nl = 0;
@ -125,7 +125,7 @@ doit(fp) FILE *fp; {
} }
} }
eatfont(from, to) char *from, *to; { eatfont(char *from, char *to) {
while (*from) { while (*from) {
if (*from == '\\' && from[1] == 'f' && from[2]) { if (*from == '\\' && from[1] == 'f' && from[2]) {
from += 3; from += 3;
@ -140,7 +140,7 @@ eatfont(from, to) char *from, *to; {
*to = 0; *to = 0;
} }
error(s) char *s; { error(char *s) {
fprintf(stderr, "Error in %s line %d, %s:\n%s\n", fn, line, s, buf); fprintf(stderr, "Error in %s line %d, %s:\n%s\n", fn, line, s, buf);
exit(1); exit(1);
} }