Mercurial > emacs
diff lib-src/getopt.c @ 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 | 84e894dcafbb |
| children | cef61b080859 |
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)) {
