summaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-03-04 02:23:06 +0000
committerAndrew Cagney <cagney@redhat.com>2000-03-04 02:23:06 +0000
commit3aca9a6fb09b011361cf931f5fc9e3850189c12b (patch)
tree947ebd8696088270fe1563d15cc14b00da225e2a /gdb/defs.h
parent7b5774274c459a1c338c5e6482d3430dc89c5ff6 (diff)
downloadgdb-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.h5
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);