Use startswith more for strncmp function calls.
[deliverable/binutils-gdb.git] / bfd / elf32-m32r.c
index 783632b65186dcd5f1d8b8988075d8954520c8eb..6a732585f5f42bcd9926182e1ab7a8edafde9d77 100644 (file)
@@ -3615,8 +3615,8 @@ m32r_elf_section_flags (const Elf_Internal_Shdr *hdr)
 {
   const char *name = hdr->bfd_section->name;
 
-  if (strncmp (name, ".sbss", 5) == 0
-      || strncmp (name, ".sdata", 6) == 0)
+  if (startswith (name, ".sbss")
+      || startswith (name, ".sdata"))
     hdr->bfd_section->flags |= SEC_SMALL_DATA;
 
   return true;
This page took 0.025739 seconds and 4 git commands to generate.