aboutsummaryrefslogtreecommitdiff
path: root/gdb/dcache.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-03 14:26:29 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-03 14:26:29 +0000
commitac7a377f64a19b1bda507a6aecaaab3f81f7ebbb (patch)
treece5247ccd5902c18fb279ee0640da24931dbcf36 /gdb/dcache.c
parenteba94f7d0d4ba3d9868c2ae9829b61cab96b344e (diff)
downloadgdb-ac7a377f64a19b1bda507a6aecaaab3f81f7ebbb.zip
gdb-ac7a377f64a19b1bda507a6aecaaab3f81f7ebbb.tar.gz
gdb-ac7a377f64a19b1bda507a6aecaaab3f81f7ebbb.tar.bz2
* dcache.c: Cast return value from xmalloc.
* remote.c: Move setting of immediate_quit from remote_open to remote_start_dummy and set it back to zero when done.
Diffstat (limited to 'gdb/dcache.c')
-rw-r--r--gdb/dcache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/dcache.c b/gdb/dcache.c
index 1b477b0..aaa01d0 100644
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -204,10 +204,11 @@ dcache_init (reading, writing)
register struct dcache_block *db;
DCACHE *dcache;
- dcache = xmalloc(sizeof(*dcache));
+ dcache = (DCACHE *) xmalloc (sizeof (*dcache));
dcache->read_memory = reading;
dcache->write_memory = writing;
- dcache->the_cache = xmalloc(sizeof(*dcache->the_cache) * DCACHE_SIZE);
+ dcache->the_cache = (struct dcache_block *)
+ xmalloc (sizeof (*dcache->the_cache) * DCACHE_SIZE);
dcache->dcache_free.next = dcache->dcache_free.last = &dcache->dcache_free;
dcache->dcache_valid.next = dcache->dcache_valid.last = &dcache->dcache_valid;