aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-07-04 03:24:37 +0000
committerFred Fish <fnf@specifix.com>1992-07-04 03:24:37 +0000
commit97225e37f7854d518da734224c7dada3e907312e (patch)
tree2b18d4efe035989a28c6d22dd841c901bc5d1901 /bfd
parent4ed3a9ea66ca93b7dea29c5cdc23d80e77e442bb (diff)
downloadgdb-97225e37f7854d518da734224c7dada3e907312e.zip
gdb-97225e37f7854d518da734224c7dada3e907312e.tar.gz
gdb-97225e37f7854d518da734224c7dada3e907312e.tar.bz2
* elf.c: Remove "(void)" casts from function calls where the
return value is ignored, in accordance with GNU coding standards.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a88b765..e57ce8a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jul 3 20:23:34 1992 Fred Fish (fnf@cygnus.com)
+
+ * elf.c: Remove "(void)" casts from function calls where the
+ return value is ignored, in accordance with GNU coding standards.
+
Tue Jun 30 16:49:12 1992 Fred Fish (fnf@cygnus.com)
* hppa.c: Apply John's standard fix to avoid "empty translation
diff --git a/bfd/elf.c b/bfd/elf.c
index 26b2a1e..cb1e936 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -707,7 +707,7 @@ DEFUN(bfd_section_from_phdr, (abfd, hdr, index),
(hdr -> p_memsz > hdr -> p_filesz));
sprintf (namebuf, split ? "segment%da" : "segment%d", index);
name = bfd_alloc (abfd, strlen (namebuf) + 1);
- (void) strcpy (name, namebuf);
+ strcpy (name, namebuf);
newsect = bfd_make_section (abfd, name);
newsect -> vma = hdr -> p_vaddr;
newsect -> _raw_size = hdr -> p_filesz;
@@ -733,7 +733,7 @@ DEFUN(bfd_section_from_phdr, (abfd, hdr, index),
{
sprintf (namebuf, "segment%db", index);
name = bfd_alloc (abfd, strlen (namebuf) + 1);
- (void) strcpy (name, namebuf);
+ strcpy (name, namebuf);
newsect = bfd_make_section (abfd, name);
newsect -> vma = hdr -> p_vaddr + hdr -> p_filesz;
newsect -> _raw_size = hdr -> p_memsz - hdr -> p_filesz;