aboutsummaryrefslogtreecommitdiff
path: root/gdb/bcache.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-02-23 03:57:26 +0000
committerJim Blandy <jimb@codesourcery.com>2002-02-23 03:57:26 +0000
commitd85a5daf253cfae20df8dde7fe6699cc830b7cf5 (patch)
treeb6835f22a75d0512208d11d46a0189f44c4f87db /gdb/bcache.h
parent374983f555df3df60025049178afe2e3f1993edc (diff)
downloadgdb-d85a5daf253cfae20df8dde7fe6699cc830b7cf5.zip
gdb-d85a5daf253cfae20df8dde7fe6699cc830b7cf5.tar.gz
gdb-d85a5daf253cfae20df8dde7fe6699cc830b7cf5.tar.bz2
Indicate that the bcache functions don't change the strings
they're passed. * bcache.h (bcache, hash): Add `const' keywords to declarations. * bcache.c (bcache, hash): Add `const' keywords to definitions.
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 6b32c57..2b03ead 100644
--- a/gdb/bcache.h
+++ b/gdb/bcache.h
@@ -113,7 +113,7 @@ struct bcache {
/* Find a copy of the LENGTH bytes at ADDR in BCACHE. If BCACHE has
never seen those bytes before, add a copy of them to BCACHE. In
either case, return a pointer to BCACHE's copy of that string. */
-extern void *bcache (void *addr, int length, struct bcache *bcache);
+extern void *bcache (const void *addr, int length, struct bcache *bcache);
/* Free all the storage that BCACHE refers to. The result is a valid,
but empty, bcache. This does not free BCACHE itself, since that
@@ -126,5 +126,5 @@ extern void free_bcache (struct bcache *bcache);
`printf_filtered' and its ilk. */
extern void print_bcache_statistics (struct bcache *bcache, char *type);
/* The hash function */
-extern unsigned long hash(void *addr, int length);
+extern unsigned long hash(const void *addr, int length);
#endif /* BCACHE_H */