From: Dave Love Date: Mon, 11 Oct 1999 17:14:12 +0000 (+0000) Subject: Avoid strneq. X-Git-Tag: emacs-pretest-21.0.90~6473 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9832d51d606ae361ebcc42d3a63678e71cbf0cd9;p=emacs.git Avoid strneq. --- diff --git a/lib-src/getopt.c b/lib-src/getopt.c index 8eefe1168f7..03effcbdb3e 100644 --- a/lib-src/getopt.c +++ b/lib-src/getopt.c @@ -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 (strneq (p->name, nextchar, nameend - nextchar)) + if (!strncmp (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 (strneq (p->name, nextchar, nameend - nextchar)) + if (!strncmp (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == strlen (p->name)) {