aboutsummaryrefslogtreecommitdiff
path: root/binutils/elfcomm.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-03-22 12:12:36 +0100
committerMartin Liska <mliska@suse.cz>2021-04-01 14:58:36 +0200
commit24d127aa9f26445709dbd53e14e2ab636a449888 (patch)
treeab6a6cf08408f26812202c4d66128dadf35cc2a6 /binutils/elfcomm.h
parent84838a61666fbc412119f544e6973ab59dd510a4 (diff)
downloadbinutils-24d127aa9f26445709dbd53e14e2ab636a449888.zip
binutils-24d127aa9f26445709dbd53e14e2ab636a449888.tar.gz
binutils-24d127aa9f26445709dbd53e14e2ab636a449888.tar.bz2
Replace const_strneq with startswith.
binutils/ChangeLog: * dwarf.c (display_debug_lines_raw): Replace const_strneq with startswith. (display_debug_lines_decoded): Likewise. (display_debug_links): Likewise. * elfcomm.c (setup_archive): Likewise. * elfcomm.h (const_strneq): Likewise. * readelf.c (process_section_headers): Likewise. (slurp_ia64_unwind_table): Likewise. (slurp_hppa_unwind_table): Likewise. (decode_arm_unwind): Likewise. (display_debug_section): Likewise. (process_note): Likewise.
Diffstat (limited to 'binutils/elfcomm.h')
-rw-r--r--binutils/elfcomm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/binutils/elfcomm.h b/binutils/elfcomm.h
index 9754ce1..04e909c 100644
--- a/binutils/elfcomm.h
+++ b/binutils/elfcomm.h
@@ -48,7 +48,6 @@ extern void byte_get_64 (const unsigned char *, elf_vma *, elf_vma *);
/* This is just a bit of syntatic sugar. */
#define streq(a,b) (strcmp ((a), (b)) == 0)
#define strneq(a,b,n) (strncmp ((a), (b), (n)) == 0)
-#define const_strneq(a,b) (strncmp ((a), (b), sizeof (b) - 1) == 0)
/* Structure to hold information about an archive file. */