New common function "startswith"
[deliverable/binutils-gdb.git] / gdb / remote-m32r-sdi.c
index c55b75c6fecb90c398053fb6d4443adc6e70e3e5..f7ea0b85c924f6fe90f73d88f4faa7dd196ef2c4 100644 (file)
@@ -1265,9 +1265,9 @@ m32r_load (struct target_ops *self, const char *args, int from_tty)
 
       if (*arg != '-')
        filename = arg;
-      else if (strncmp (arg, "-quiet", strlen (arg)) == 0)
+      else if (startswith ("-quiet", arg))
        quiet = 1;
-      else if (strncmp (arg, "-nostart", strlen (arg)) == 0)
+      else if (startswith ("-nostart", arg))
        nostart = 1;
       else
        error (_("Unknown option `%s'"), arg);
This page took 0.024844 seconds and 4 git commands to generate.