summaryrefslogtreecommitdiff
path: root/gdb/bcache.h
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>2000-02-08 04:39:02 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>2000-02-08 04:39:02 +0000
commit91b96b52927a7cb860f67c3220fa5129752f8b1c (patch)
treee6b824cba197e58e0484c4643da4abd6d4d7039a /gdb/bcache.h
parent426174b521c529050e2e882b348440b402488f1f (diff)
downloadgdb-91b96b52927a7cb860f67c3220fa5129752f8b1c.tar.gz
Clean up compiler warnings:
* bcache.h, bcache.c, c-valprint.c, coffread.c, stabsread.c, stack.c, valprint.c: Change variables to unsigned. * bcache.c: Rearrange to avoid warnings about variables not being set. * c-lang.c, ch-lang.c, f-lang.c, m2-lang.c: Include valprint.h rather than declaring print_max and repeat_count_threashold ourselves (incorrectly). * valprint.h: Do declare repeat_count_threashold. * ch-exp.c: Use default case for internal error. * findvar.c: Don't omit argument type. * symtab.c: Remove unused variable.
Diffstat (limited to 'gdb/bcache.h')
-rw-r--r--gdb/bcache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/bcache.h b/gdb/bcache.h
index 1350bea66a0..4735af71cd3 100644
--- a/gdb/bcache.h
+++ b/gdb/bcache.h
@@ -95,14 +95,14 @@ struct bcache {
struct obstack cache;
/* How many hash buckets we're using. */
- int num_buckets;
+ unsigned int num_buckets;
/* Hash buckets. This table is allocated using malloc, so when we
grow the table we can return the old table to the system. */
struct bstring **bucket;
/* Statistics. */
- long unique_count; /* number of unique strings */
+ unsigned long unique_count; /* number of unique strings */
long total_count; /* total number of strings cached, including dups */
long unique_size; /* size of unique strings, in bytes */
long total_size; /* total number of bytes cached, including dups */