diff options
author | Tristan Gingold <gingold@adacore.com> | 2010-06-11 15:13:32 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2010-06-11 15:13:32 +0000 |
commit | 81bb31c0d9904c80f282134ea1ccb6899f93b0a6 (patch) | |
tree | ec6df98e869dffd971c1a95de586eb61bfffd9c2 /bfd/vms-misc.c | |
parent | 1ded5609983646a6dbddc25aa51f4695c3e64c2c (diff) | |
download | gdb-81bb31c0d9904c80f282134ea1ccb6899f93b0a6.zip gdb-81bb31c0d9904c80f282134ea1ccb6899f93b0a6.tar.gz gdb-81bb31c0d9904c80f282134ea1ccb6899f93b0a6.tar.bz2 |
2010-06-11 Tristan Gingold <gingold@adacore.com>
* vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
Adjust cast.
(_bfd_vms_output_dump): Make DATA argument const, adjust cast.
* vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
* vms-alpha.c (evax_section_flags): Make it const.
(vms_secflag_by_name): Remove unused ABFD argument.
Make SECTION_FLAGS and NAME arguments const. Clarify comment.
(vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
(_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
(_bfd_vms_write_egsd): Remove useless cast.
Diffstat (limited to 'bfd/vms-misc.c')
-rw-r--r-- | bfd/vms-misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c index 49b8274..9840043 100644 --- a/bfd/vms-misc.c +++ b/bfd/vms-misc.c @@ -348,7 +348,7 @@ _bfd_vms_output_quad (struct vms_rec_wr *recwr, bfd_vma value) /* Output c-string as counted string. */ void -_bfd_vms_output_counted (struct vms_rec_wr *recwr, char *value) +_bfd_vms_output_counted (struct vms_rec_wr *recwr, const char *value) { int len; @@ -366,13 +366,13 @@ _bfd_vms_output_counted (struct vms_rec_wr *recwr, char *value) return; } _bfd_vms_output_byte (recwr, (unsigned int) len & 0xff); - _bfd_vms_output_dump (recwr, (unsigned char *) value, len); + _bfd_vms_output_dump (recwr, (const unsigned char *)value, len); } /* Output character area. */ void -_bfd_vms_output_dump (struct vms_rec_wr *recwr, unsigned char *data, int len) +_bfd_vms_output_dump (struct vms_rec_wr *recwr, const unsigned char *data, int len) { vms_debug2 ((6, "_bfd_vms_output_dump (%d)\n", len)); |