[gdbserver] Remove unused max_jump_pad_size
[deliverable/binutils-gdb.git] / gdb / remote-notif.c
index 3e07fc7241aa72176f274419ba5021f06fffdf53..3241e7851258dbd218efad59f438bbc6390c45e8 100644 (file)
@@ -133,7 +133,7 @@ handle_notification (struct remote_notif_state *state, char *buf)
     {
       const char *name = notifs[i]->name;
 
-      if (strncmp (buf, name, strlen (name)) == 0
+      if (startswith (buf, name)
          && buf[strlen (name)] == ':')
        break;
     }
@@ -238,7 +238,7 @@ do_notif_event_xfree (void *arg)
 struct remote_notif_state *
 remote_notif_state_allocate (void)
 {
-  struct remote_notif_state *notif_state = xzalloc (sizeof (*notif_state));
+  struct remote_notif_state *notif_state = XCNEW (struct remote_notif_state);
 
   notif_state->notif_queue = QUEUE_alloc (notif_client_p, NULL);
 
This page took 0.02316 seconds and 4 git commands to generate.