summaryrefslogtreecommitdiff
path: root/vpath.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 /vpath.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 'vpath.c')
-rw-r--r--vpath.c19
1 files changed, 6 insertions, 13 deletions
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;