summaryrefslogtreecommitdiff
path: root/lib-src/getopt.c
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>1999-10-11 17:14:12 +0000
committerDave Love <fx@gnu.org>1999-10-11 17:14:12 +0000
commit9832d51d606ae361ebcc42d3a63678e71cbf0cd9 (patch)
treec66bf083fe10cdf6c6f5e05e8696c9a5ba17b4c3 /lib-src/getopt.c
parent9c610b03c42235b73b4390fdc9cfc8cfe1b962a9 (diff)
downloademacs-9832d51d606ae361ebcc42d3a63678e71cbf0cd9.tar.gz
Avoid strneq.
Diffstat (limited to 'lib-src/getopt.c')
-rw-r--r--lib-src/getopt.c4
1 files changed, 2 insertions, 2 deletions
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))
{