From 606cf9b169f23b8d87b20ea02b235df8fa66c2d8 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 25 Oct 2009 00:26:34 +0000 Subject: Various simple code cleanups. --- commands.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'commands.c') 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)); } -- cgit v1.2.3