changeset 24979:1a697e2604c3

* Add configure option to enable dmalloc library. * Various code cleanups.
author Paul D. Smith <psmith@BayNetworks.com>
date Wed, 21 Jul 1999 05:53:29 +0000
parents ba243531aa37
children 54725e0c4950
files lib-src/getopt.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/getopt.c	Tue Jul 20 22:53:17 1999 +0000
+++ b/lib-src/getopt.c	Wed Jul 21 05:53:29 1999 +0000
@@ -652,7 +652,7 @@
       /* 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 @@
 	/* 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))
 		{