# HG changeset patch # User Dave Love # Date 939662052 0 # Node ID cef61b0808597102a048562ce5e99d8f90588d25 # Parent e1d167cf6e96cc23f093d8801b5af51770d1c9f2 Avoid strneq. diff -r e1d167cf6e96 -r cef61b080859 lib-src/getopt.c --- a/lib-src/getopt.c Mon Oct 11 09:53:03 1999 +0000 +++ b/lib-src/getopt.c Mon Oct 11 17:14:12 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 (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 @@ /* 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)) {