aboutsummaryrefslogtreecommitdiff
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
commit745b8ca0fc4d987837a24d1ed5f53006478d2716 (patch)
treed6471c55e430ad890aabc21f06dc169bfd5cba58 /gdb/bcache.h
parent1171f8d754f71e35fd2f6c4e82b00f3c685e515f (diff)
downloadgdb-745b8ca0fc4d987837a24d1ed5f53006478d2716.zip
gdb-745b8ca0fc4d987837a24d1ed5f53006478d2716.tar.gz
gdb-745b8ca0fc4d987837a24d1ed5f53006478d2716.tar.bz2
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 1350bea6..4735af7 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 */