* defs.h (STRCMP, STREQ, STREQN): New macros.
[deliverable/binutils-gdb.git] / gdb / command.c
index e12db1b5f74c91679922985b451689c06694d44b..412ff21137c316158682cdbdf225319529f98e69 100644 (file)
@@ -260,7 +260,7 @@ delete_cmd (name, list)
   register struct cmd_list_element *c;
   struct cmd_list_element *p;
 
-  while (*list && !strcmp ((*list)->name, name))
+  while (*list && STREQ ((*list)->name, name))
     {
       if ((*list)->hookee)
        (*list)->hookee->hook = 0;      /* Hook slips out of its mouth */
@@ -272,7 +272,7 @@ delete_cmd (name, list)
   if (*list)
     for (c = *list; c->next;)
       {
-       if (!strcmp (c->next->name, name))
+       if (STREQ (c->next->name, name))
          {
            if (c->next->hookee)
              c->next->hookee->hook = 0;  /* hooked cmd gets away.  */
This page took 0.029067 seconds and 4 git commands to generate.