summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-10-04 02:12:52 +0000
committerPaul Smith <psmith@gnu.org>2002-10-04 02:12:52 +0000
commit9dc79463a9a5601439126d124e99777ebe432874 (patch)
tree2bad05769aae70786f1c5c846cb0443eb9a7aaed /dir.c
parent1d3dfeb74b47803559e0b5eaa886ebb1ad9e3e3f (diff)
downloadgunmake-9dc79463a9a5601439126d124e99777ebe432874.tar.gz
Fix K&R-isms found on SunOS 4.1.4 builds.
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c30
1 files changed, 21 insertions, 9 deletions
diff --git a/dir.c b/dir.c
index 8060528..e862b9d 100644
--- a/dir.c
+++ b/dir.c
@@ -248,7 +248,8 @@ struct directory_contents
};
static unsigned long
-directory_contents_hash_1 (void const *key_0)
+directory_contents_hash_1 (key_0)
+ const void *key_0;
{
struct directory_contents const *key = (struct directory_contents const *) key_0;
unsigned long hash;
@@ -270,7 +271,8 @@ directory_contents_hash_1 (void const *key_0)
}
static unsigned long
-directory_contents_hash_2 (void const *key_0)
+directory_contents_hash_2 (key_0)
+ const void *key_0;
{
struct directory_contents const *key = (struct directory_contents const *) key_0;
unsigned long hash;
@@ -293,7 +295,9 @@ directory_contents_hash_2 (void const *key_0)
}
static int
-directory_contents_hash_cmp (void const *xv, void const *yv)
+directory_contents_hash_cmp (xv, yv)
+ const void *xv;
+ const void *yv;
{
struct directory_contents const *x = (struct directory_contents const *) xv;
struct directory_contents const *y = (struct directory_contents const *) yv;
@@ -341,19 +345,23 @@ struct directory
};
static unsigned long
-directory_hash_1 (void const *key)
+directory_hash_1 (key)
+ const void *key;
{
return_ISTRING_HASH_1 (((struct directory const *) key)->name);
}
static unsigned long
-directory_hash_2 (void const *key)
+directory_hash_2 (key)
+ const void *key;
{
return_ISTRING_HASH_2 (((struct directory const *) key)->name);
}
static int
-directory_hash_cmp (void const *x, void const *y)
+directory_hash_cmp (x, y)
+ const void *x;
+ const void *y;
{
return_ISTRING_COMPARE (((struct directory const *) x)->name,
((struct directory const *) y)->name);
@@ -379,19 +387,23 @@ struct dirfile
};
static unsigned long
-dirfile_hash_1 (void const *key)
+dirfile_hash_1 (key)
+ const void *key;
{
return_ISTRING_HASH_1 (((struct dirfile const *) key)->name);
}
static unsigned long
-dirfile_hash_2 (void const *key)
+dirfile_hash_2 (key)
+ const void *key;
{
return_ISTRING_HASH_2 (((struct dirfile const *) key)->name);
}
static int
-dirfile_hash_cmp (void const *xv, void const *yv)
+dirfile_hash_cmp (xv, yv)
+ const void *xv;
+ const void *yv;
{
struct dirfile const *x = ((struct dirfile const *) xv);
struct dirfile const *y = ((struct dirfile const *) yv);