From 0eedb9a8b7437baf884632d1f0a5620ca8d69515 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 4 Sep 2003 15:33:02 +0000 Subject: [PATCH] * Fixed some K&R stuff in mkindex.c. git-svn-id: svn://svn.zoy.org/elk/trunk@94 55e467fa-43c5-0310-a8a2-de718669efc6 --- doc/util/mkindex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/util/mkindex.c b/doc/util/mkindex.c index 8e18321..97cb112 100644 --- a/doc/util/mkindex.c +++ b/doc/util/mkindex.c @@ -35,7 +35,7 @@ char buf[10000]; long line; char *fn; -main(ac, av) char **av; { +main(int ac, char **av) { FILE *fp; if (ac < 2) { @@ -54,7 +54,7 @@ main(ac, av) char **av; { return 0; } -doit(fp) FILE *fp; { +doit(FILE *fp) { char *p, *q, *start, *macro; char inx[1000], arg[1000]; 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) { if (*from == '\\' && from[1] == 'f' && from[2]) { from += 3; @@ -140,7 +140,7 @@ eatfont(from, to) char *from, *to; { *to = 0; } -error(s) char *s; { +error(char *s) { fprintf(stderr, "Error in %s line %d, %s:\n%s\n", fn, line, s, buf); exit(1); }