From 24d127aa9f26445709dbd53e14e2ab636a449888 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 22 Mar 2021 12:12:36 +0100 Subject: 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. --- binutils/elfcomm.h | 1 - 1 file changed, 1 deletion(-) (limited to 'binutils/elfcomm.h') 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. */ -- cgit v1.1