From 6374309c6d4d17ab1e4109133ab8aad55f77d51c Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 14 Oct 2002 21:54:04 +0000 Subject: Convert the source code to use ANSI C style function definitions and enable the automake ansi2knr capability. Right now this doesn't quite build using a K&R compiler because of a problem with the loadavg test program, but the rest of the code works. I'm asking the automake list about this problem. --- implicit.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'implicit.c') diff --git a/implicit.c b/implicit.c index 857895d..0908cbd 100644 --- a/implicit.c +++ b/implicit.c @@ -33,9 +33,7 @@ static int pattern_search PARAMS ((struct file *file, int archive, unsigned int or returns 0 if no implicit rule was found. */ int -try_implicit_rule (file, depth) - struct file *file; - unsigned int depth; +try_implicit_rule (struct file *file, unsigned int depth) { DBF (DB_IMPLICIT, _("Looking for an implicit rule for `%s'.\n")); @@ -78,11 +76,8 @@ try_implicit_rule (file, depth) DEPTH is used for debugging messages. */ static int -pattern_search (file, archive, depth, recursions) - struct file *file; - int archive; - unsigned int depth; - unsigned int recursions; +pattern_search (struct file *file, int archive, + unsigned int depth, unsigned int recursions) { /* Filename we are searching for a rule for. */ char *filename = archive ? strchr (file->name, '(') : file->name; -- cgit v1.2.3