diff options
author | Paul Smith <psmith@gnu.org> | 2009-10-25 00:26:34 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2009-10-25 00:26:34 +0000 |
commit | 606cf9b169f23b8d87b20ea02b235df8fa66c2d8 (patch) | |
tree | 4e2d4f7e9118fff37e91b4a1377d171dc4f6ca36 /commands.c | |
parent | 131f1157301f3626eb014ef0a17bb4d52f1106dc (diff) | |
download | make-606cf9b169f23b8d87b20ea02b235df8fa66c2d8.tar.gz |
Various simple code cleanups.
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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)); } |