aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-io.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-11-26 21:35:53 +0000
committerAndrew Cagney <cagney@redhat.com>1997-11-26 21:35:53 +0000
commit3885125c8e925439dc8c0a54dfbd4737a0d492b3 (patch)
tree8bbc3fc618b83579de0a450f5cdc39edcb857412 /sim/common/sim-io.c
parent4ccd975a924d2c5064bdb0cf4f88226d2ef83263 (diff)
downloadgdb-3885125c8e925439dc8c0a54dfbd4737a0d492b3.zip
gdb-3885125c8e925439dc8c0a54dfbd4737a0d492b3.tar.gz
gdb-3885125c8e925439dc8c0a54dfbd4737a0d492b3.tar.bz2
* sim-io.c (sim_io_getstring): Delete unused len2. (sim_io_syscalls):
Ditto for sys_errno.
Diffstat (limited to 'sim/common/sim-io.c')
-rw-r--r--sim/common/sim-io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sim/common/sim-io.c b/sim/common/sim-io.c
index cea418f..994d30f 100644
--- a/sim/common/sim-io.c
+++ b/sim/common/sim-io.c
@@ -306,7 +306,6 @@ sim_io_getstring(SIM_DESC sd,
address_word target_string)
{
int len = 0;
- int len2;
char *buf;
while (sim_core_read_1 (cpu, cia, sim_core_read_map, target_string+len) != 0)
@@ -335,7 +334,6 @@ sim_io_syscalls(SIM_DESC sd,
int ret;
char *buf;
int fd;
- int sys_errno = 0;
*errno_return = 0;
*syscall_return = 0;