diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2008-11-11 22:20:54 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2008-11-11 22:20:54 +0000 |
commit | d68c23cd04f713928535ba1cbee111b7fea5116e (patch) | |
tree | 7795522ca0a85bc6802c761bf753c76cfe4bf03a /sim/erc32/erc32.c | |
parent | 3c8b2edaedc883b4a4cd12bf14348b29c0c23a79 (diff) | |
download | gdb-d68c23cd04f713928535ba1cbee111b7fea5116e.zip gdb-d68c23cd04f713928535ba1cbee111b7fea5116e.tar.gz gdb-d68c23cd04f713928535ba1cbee111b7fea5116e.tar.bz2 |
2008-11-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* erc32.c, exec.c: Fix warnings.
Diffstat (limited to 'sim/erc32/erc32.c')
-rw-r--r-- | sim/erc32/erc32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/erc32/erc32.c b/sim/erc32/erc32.c index 0b3f3ac..c79dfd6 100644 --- a/sim/erc32/erc32.c +++ b/sim/erc32/erc32.c @@ -24,6 +24,7 @@ #include <sys/types.h> #include <stdio.h> +#include <string.h> #include <termios.h> #include <sys/fcntl.h> #include <sys/file.h> @@ -1659,7 +1660,7 @@ memory_read(asi, addr, data, sz, ws) errmec = 0; return(1); } -#endif; +#endif if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) { fetch_bytes (asi, &ramb[addr & mem_rammask], data, sz); @@ -1736,7 +1737,7 @@ memory_write(asi, addr, data, sz, ws) errmec = 0; return(1); } -#endif; +#endif if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) { if (mem_accprot) { |