New common function "startswith"
[deliverable/binutils-gdb.git] / gdb / xcoffread.c
index e83bd13e16365b77f2f3b599958a34c4cd588c2e..3cb6eda305389db9593616a87c15b246fb536990 100644 (file)
@@ -2839,7 +2839,7 @@ scan_xcoff_symtab (struct objfile *objfile)
                   loader-generated definitions.  Keeping the global
                   symbols leads to "in psymbols but not in symbols"
                   errors.  */
-               if (strncmp (namestring, "@FIX", 4) == 0)
+               if (startswith (namestring, "@FIX"))
                  continue;
 
                symbol.n_value += ANOFFSET (objfile->section_offsets,
This page took 0.023671 seconds and 4 git commands to generate.