diff options
author | Paul Smith <psmith@gnu.org> | 2006-04-09 22:09:24 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2006-04-09 22:09:24 +0000 |
commit | 8b40defd1e1e486fd04d87c4b1a5ce233f145413 (patch) | |
tree | 3a3bed68bb3377d1a2a28ef8e1a56a269bc7b675 /strcache.c | |
parent | 21a5b2c58dc9198560f81895c24abd9b62aa058c (diff) | |
download | make-8b40defd1e1e486fd04d87c4b1a5ce233f145413.tar.gz |
Another round of cleanups:
- Add more warnings.
- Rename variables that mask out-scope vars with the same name.
- Remove all casts of return values from xmalloc, xrealloc, and alloca.
- Remove casts of the first argument to xrealloc.
- Convert all bcopy/bzero/bcmp invocations to use memcp/memmove/memset/memcmp.
Diffstat (limited to 'strcache.c')
-rw-r--r-- | strcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,7 +43,7 @@ static struct strcache * new_cache() { struct strcache *new; - new = (struct strcache *) xmalloc (sizeof (*new) + bufsize); + new = xmalloc (sizeof (*new) + bufsize); new->end = new->buffer; new->count = 0; new->bytesfree = bufsize; @@ -118,7 +118,7 @@ static const char * add_hash (const char *str, int len) { /* Look up the string in the hash. If it's there, return it. */ - char **slot = (char **) hash_find_slot (&strings, str); + char *const *slot = (char *const *) hash_find_slot (&strings, str); const char *key = *slot; if (!HASH_VACANT (key)) |