aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-08-03 08:49:01 +0000
committerTristan Gingold <gingold@adacore.com>2010-08-03 08:49:01 +0000
commit22b6a042aacad07e658f7eb6510b2f37a2f2ff4a (patch)
treedf8e87ff64d0d780ff5d3c6a988705e7b37c6da2 /bfd
parent2de00c64c484b5af9cf29d87c1d1172311c03555 (diff)
downloadgdb-22b6a042aacad07e658f7eb6510b2f37a2f2ff4a.zip
gdb-22b6a042aacad07e658f7eb6510b2f37a2f2ff4a.tar.gz
gdb-22b6a042aacad07e658f7eb6510b2f37a2f2ff4a.tar.bz2
2010-08-03 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (vms_lib_bread_raw): Change type of BUF argument. (vms_lib_bread, vms_lib_bopen): Adjust.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/vms-lib.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e44b642..1feb521 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-03 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (vms_lib_bread_raw): Change type of BUF argument.
+ (vms_lib_bread, vms_lib_bopen): Adjust.
+
2010-08-02 Alan Modra <amodra@gmail.com>
PR 11866
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index 13a4fa8..c9a9fc6 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -833,7 +833,7 @@ vms_lib_read_block (struct bfd *abfd)
function does not handle records nor EOF. */
static file_ptr
-vms_lib_bread_raw (struct bfd *abfd, void *buf, file_ptr nbytes)
+vms_lib_bread_raw (struct bfd *abfd, unsigned char *buf, file_ptr nbytes)
{
struct vms_lib_iovec *vec = (struct vms_lib_iovec *) abfd->iostream;
file_ptr res;
@@ -969,7 +969,7 @@ vms_lib_bread (struct bfd *abfd, void *buf, file_ptr nbytes)
unsigned char blen[2];
/* Read record length. */
- if (vms_lib_bread_raw (abfd, &blen, sizeof (blen)) != sizeof (blen))
+ if (vms_lib_bread_raw (abfd, blen, sizeof (blen)) != sizeof (blen))
return -1;
vec->rec_len = bfd_getl16 (blen);
if (bfd_libdata (abfd->my_archive)->kind == vms_lib_txt)
@@ -1215,7 +1215,7 @@ static bfd_boolean
vms_lib_bopen (bfd *el, file_ptr filepos)
{
struct vms_lib_iovec *vec;
- char buf[256];
+ unsigned char buf[256];
struct vms_mhd *mhd;
struct lib_tdata *tdata = bfd_libdata (el->my_archive);
unsigned int len;