New common function "startswith"
[deliverable/binutils-gdb.git] / gdb / nat / linux-procfs.c
index 1e922b94824ae876d51065c351a18bb7f6c732d9..f1493839f60254f1a96d2d3cb2784a38ecce9d41 100644 (file)
@@ -93,7 +93,7 @@ linux_proc_pid_get_state (pid_t pid, char *buffer, size_t buffer_size,
 
   have_state = 0;
   while (fgets (buffer, buffer_size, procfile) != NULL)
-    if (strncmp (buffer, "State:", 6) == 0)
+    if (startswith (buffer, "State:"))
       {
        have_state = 1;
        break;
This page took 0.025219 seconds and 4 git commands to generate.