diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-10-25 13:23:17 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-10-25 13:23:17 +0000 |
commit | 86b66592102eaf87549d084205c6e5abe8e5014b (patch) | |
tree | 9d9498f452f8282a831019d07e12c7ba093ec02c /epan/dissectors/file-elf.c | |
parent | 62b66aca7c3b8156524acc13ba3f485d2d6de3c8 (diff) | |
download | wireshark-86b66592102eaf87549d084205c6e5abe8e5014b.tar.gz |
Fix CID 1111814: segment_item is set but not used (in one conditional).
Move a URL from in the middle of the copyright notice to up where it (appears
to) belong.
svn path=/trunk/; revision=52839
Diffstat (limited to 'epan/dissectors/file-elf.c')
-rw-r--r-- | epan/dissectors/file-elf.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/dissectors/file-elf.c b/epan/dissectors/file-elf.c index c1e27876cb..31069c1ab1 100644 --- a/epan/dissectors/file-elf.c +++ b/epan/dissectors/file-elf.c @@ -6,6 +6,7 @@ * http://refspecs.linuxfoundation.org/ * http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/ehframechpt.html * http://dwarfstd.org/doc/DWARF4.pdf + * http://www.sco.com/developers/devspecs/ * * Copyright 2013, Michal Labedzki for Tieto Corporation * @@ -19,7 +20,7 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - *http://www.sco.com/developers/devspecs/ + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -641,7 +642,8 @@ get_dwarf_extension_length(guint8 format, guint register_size) return 0; } -static const guint8 *get_section_name_offset(tvbuff_t *tvb, guint64 shoff, guint16 shnum, guint16 shentsize, guint16 shndx, guint64 shstrtab_offset, guint machine_encoding) +static const guint8 * +get_section_name_offset(tvbuff_t *tvb, guint64 shoff, guint16 shnum, guint16 shentsize, guint16 shndx, guint64 shstrtab_offset, guint machine_encoding) { gint offset; guint32 sh_name; @@ -1387,8 +1389,7 @@ dissect_elf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) name = wmem_strdup_printf(wmem_packet_scope(), "ProgramHeaderEntry #%u", phnum - i_16 - 1); - segment_item = proto_tree_add_text(ph_entry_tree, tvb, - value_guard(p_offset), value_guard(segment_size), "Segment"); + proto_tree_add_text(ph_entry_tree, tvb, value_guard(p_offset), value_guard(segment_size), "Segment"); file_size += segment_size; |