summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-10-25 00:26:34 +0000
committerPaul Smith <psmith@gnu.org>2009-10-25 00:26:34 +0000
commit606cf9b169f23b8d87b20ea02b235df8fa66c2d8 (patch)
tree4e2d4f7e9118fff37e91b4a1377d171dc4f6ca36 /commands.c
parent131f1157301f3626eb014ef0a17bb4d52f1106dc (diff)
downloadmake-606cf9b169f23b8d87b20ea02b235df8fa66c2d8.tar.gz
Various simple code cleanups.
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/commands.c b/commands.c
index 19cb7b4..0023ba1 100644
--- a/commands.c
+++ b/commands.c
@@ -43,20 +43,22 @@ int getpid ();
static unsigned long
dep_hash_1 (const void *key)
{
- return_STRING_HASH_1 (dep_name ((struct dep const *) key));
+ const struct dep *d = key;
+ return_STRING_HASH_1 (dep_name (d));
}
static unsigned long
dep_hash_2 (const void *key)
{
- return_STRING_HASH_2 (dep_name ((struct dep const *) key));
+ const struct dep *d = key;
+ return_STRING_HASH_2 (dep_name (d));
}
static int
dep_hash_cmp (const void *x, const void *y)
{
- struct dep *dx = (struct dep *) x;
- struct dep *dy = (struct dep *) y;
+ const struct dep *dx = x;
+ const struct dep *dy = y;
return strcmp (dep_name (dx), dep_name (dy));
}