aboutsummaryrefslogtreecommitdiff
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
commit082faf240ec27a125674eed0782a50cbb2aed512 (patch)
tree6b420ad3f3bf3e54f80ef914e764488a0715da44 /gdb/defs.h
parente54a9244cd82c100032fb4443fb6e02d211f359f (diff)
downloadgdb-082faf240ec27a125674eed0782a50cbb2aed512.zip
gdb-082faf240ec27a125674eed0782a50cbb2aed512.tar.gz
gdb-082faf240ec27a125674eed0782a50cbb2aed512.tar.bz2
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 8a06f58..9248c76 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);