summaryrefslogtreecommitdiff
path: root/implicit.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-10-14 21:54:04 +0000
committerPaul Smith <psmith@gnu.org>2002-10-14 21:54:04 +0000
commit6374309c6d4d17ab1e4109133ab8aad55f77d51c (patch)
tree91011a11f637df979b9c5dd8b0f1fc4bfc2be831 /implicit.c
parent8bbdbb02b30ffd39c2fac9259b3a91cb62e1711d (diff)
downloadgunmake-6374309c6d4d17ab1e4109133ab8aad55f77d51c.tar.gz
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.
Diffstat (limited to 'implicit.c')
-rw-r--r--implicit.c11
1 files changed, 3 insertions, 8 deletions
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;