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. --- vpath.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'vpath.c') diff --git a/vpath.c b/vpath.c index 065779b..18aaaa9 100644 --- a/vpath.c +++ b/vpath.c @@ -157,8 +157,7 @@ build_vpath_lists () VPATHS chain. */ void -construct_vpath_list (pattern, dirpath) - char *pattern, *dirpath; +construct_vpath_list (char *pattern, char *dirpath) { register unsigned int elem; register char *p; @@ -317,9 +316,7 @@ construct_vpath_list (pattern, dirpath) in. If it is found, return 1. Otherwise we return 0. */ int -gpath_search (file, len) - char *file; - int len; +gpath_search (char *file, int len) { register char **gp; @@ -338,9 +335,7 @@ gpath_search (file, len) Otherwise we return 0. */ int -vpath_search (file, mtime_ptr) - char **file; - FILE_TIMESTAMP *mtime_ptr; +vpath_search (char **file, FILE_TIMESTAMP *mtime_ptr) { register struct vpath *v; @@ -375,10 +370,8 @@ vpath_search (file, mtime_ptr) Otherwise we return 0. */ static int -selective_vpath_search (path, file, mtime_ptr) - struct vpath *path; - char **file; - FILE_TIMESTAMP *mtime_ptr; +selective_vpath_search (struct vpath *path, char **file, + FILE_TIMESTAMP *mtime_ptr) { int not_target; char *name, *n; @@ -545,7 +538,7 @@ selective_vpath_search (path, file, mtime_ptr) /* Print the data base of VPATH search paths. */ void -print_vpath_data_base () +print_vpath_data_base (void) { register unsigned int nvpaths; register struct vpath *v; -- cgit v1.2.3