diff options
author | Alan Modra <amodra@gmail.com> | 2007-02-27 08:29:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-02-27 08:29:52 +0000 |
commit | 7a8757b3194d57d783bccfe2b1b206990d6396b6 (patch) | |
tree | 8eb5c3d2399fad38bd289335735bff13cedd49cc /bfd/elf32-spu.c | |
parent | fd99afa763de5aec45193afc7100c475e8b2c493 (diff) | |
download | gdb-7a8757b3194d57d783bccfe2b1b206990d6396b6.zip gdb-7a8757b3194d57d783bccfe2b1b206990d6396b6.tar.gz gdb-7a8757b3194d57d783bccfe2b1b206990d6396b6.tar.bz2 |
* elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
* elf32-spu.c (ovl_mgr_pread): Add const to casts.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r-- | bfd/elf32-spu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 978792b..7b08e3c 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -1069,7 +1069,7 @@ ovl_mgr_pread (struct bfd *abfd ATTRIBUTE_UNUSED, size_t max; os = (struct _ovl_stream *) stream; - max = (char *) os->end - (char *) os->start; + max = (const char *) os->end - (const char *) os->start; if ((ufile_ptr) offset >= max) return 0; @@ -1078,7 +1078,7 @@ ovl_mgr_pread (struct bfd *abfd ATTRIBUTE_UNUSED, if (count > max - offset) count = max - offset; - memcpy (buf, (char *) os->start + offset, count); + memcpy (buf, (const char *) os->start + offset, count); return count; } |