Use startswith in gas subfolder.
[deliverable/binutils-gdb.git] / gas / input-file.c
index aae20a8ca6e255839a308f846dbb5f87b34e7d04..088af7de13d7440e9f15d75c29856333bc95279c 100644 (file)
@@ -171,7 +171,7 @@ input_file_open (const char *filename,
       if (c == 'N')
        {
          if (fgets (buf, sizeof (buf), f_in)
-             && !strncmp (buf, "O_APP", 5) && ISSPACE (buf[5]))
+             && startswith (buf, "O_APP") && ISSPACE (buf[5]))
            preprocess = 0;
          if (!strchr (buf, '\n'))
            ungetc ('#', f_in); /* It was longer.  */
@@ -181,7 +181,7 @@ input_file_open (const char *filename,
       else if (c == 'A')
        {
          if (fgets (buf, sizeof (buf), f_in)
-             && !strncmp (buf, "PP", 2) && ISSPACE (buf[2]))
+             && startswith (buf, "PP") && ISSPACE (buf[2]))
            preprocess = 1;
          if (!strchr (buf, '\n'))
            ungetc ('#', f_in);
This page took 0.026086 seconds and 4 git commands to generate.