* Add configure option to enable dmalloc library.
authorPaul D. Smith <psmith@BayNetworks.com>
Wed, 21 Jul 1999 05:53:29 +0000 (05:53 +0000)
committerPaul D. Smith <psmith@BayNetworks.com>
Wed, 21 Jul 1999 05:53:29 +0000 (05:53 +0000)
* Various code cleanups.

lib-src/getopt.c

index 03effcb..8eefe11 100644 (file)
@@ -652,7 +652,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
       /* Test all long options for either exact match
         or abbreviated matches.  */
       for (p = longopts, option_index = 0; p->name; p++, option_index++)
-       if (!strncmp (p->name, nextchar, nameend - nextchar))
+       if (strneq (p->name, nextchar, nameend - nextchar))
          {
            if ((unsigned int) (nameend - nextchar)
                == (unsigned int) strlen (p->name))
@@ -839,7 +839,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
        /* Test all long options for either exact match
           or abbreviated matches.  */
        for (p = longopts, option_index = 0; p->name; p++, option_index++)
-         if (!strncmp (p->name, nextchar, nameend - nextchar))
+         if (strneq (p->name, nextchar, nameend - nextchar))
            {
              if ((unsigned int) (nameend - nextchar) == strlen (p->name))
                {