diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-03-04 02:23:06 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-03-04 02:23:06 +0000 |
commit | 3aca9a6fb09b011361cf931f5fc9e3850189c12b (patch) | |
tree | 947ebd8696088270fe1563d15cc14b00da225e2a /gdb/defs.h | |
parent | 7b5774274c459a1c338c5e6482d3430dc89c5ff6 (diff) | |
download | gdb-3aca9a6fb09b011361cf931f5fc9e3850189c12b.tar.gz |
Make mmalloc functions consistent. Some need ISO-C others need PTR :-(.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/defs.h b/gdb/defs.h index 8a06f583dde..9248c761de3 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -341,7 +341,10 @@ extern int myread (int, char *, int); extern int query (char *, ...) ATTR_FORMAT (printf, 1, 2); #if !defined (USE_MMALLOC) -extern PTR mcalloc (void *, size_t, size_t); +/* NOTE: cagney/2000-03-04: The mmalloc functions need to use PTR + rather than void* so that they are consistent with + ../mmalloc/mmalloc.h. */ +extern PTR mcalloc (PTR, size_t, size_t); extern PTR mmalloc (PTR, size_t); extern PTR mrealloc (PTR, PTR, size_t); extern void mfree (PTR, PTR); |