diff options
| author | Paul D. Smith | 1999-07-21 05:53:29 +0000 |
|---|---|---|
| committer | Paul D. Smith | 1999-07-21 05:53:29 +0000 |
| commit | 55e3eb93718e9f3aab13ababc75a34d457e88031 (patch) | |
| tree | e244cf4a1d3d7184b5538de4d7edded471090c20 /lib-src | |
| parent | 35194e3f1a22aeaebb7df69fef1de2a5cf9c1064 (diff) | |
| download | emacs-55e3eb93718e9f3aab13ababc75a34d457e88031.tar.gz emacs-55e3eb93718e9f3aab13ababc75a34d457e88031.zip | |
* Add configure option to enable dmalloc library.
* Various code cleanups.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/getopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/getopt.c b/lib-src/getopt.c index 03effcbdb3e..8eefe1168f7 100644 --- a/lib-src/getopt.c +++ b/lib-src/getopt.c | |||
| @@ -652,7 +652,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | |||
| 652 | /* Test all long options for either exact match | 652 | /* Test all long options for either exact match |
| 653 | or abbreviated matches. */ | 653 | or abbreviated matches. */ |
| 654 | for (p = longopts, option_index = 0; p->name; p++, option_index++) | 654 | for (p = longopts, option_index = 0; p->name; p++, option_index++) |
| 655 | if (!strncmp (p->name, nextchar, nameend - nextchar)) | 655 | if (strneq (p->name, nextchar, nameend - nextchar)) |
| 656 | { | 656 | { |
| 657 | if ((unsigned int) (nameend - nextchar) | 657 | if ((unsigned int) (nameend - nextchar) |
| 658 | == (unsigned int) strlen (p->name)) | 658 | == (unsigned int) strlen (p->name)) |
| @@ -839,7 +839,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | |||
| 839 | /* Test all long options for either exact match | 839 | /* Test all long options for either exact match |
| 840 | or abbreviated matches. */ | 840 | or abbreviated matches. */ |
| 841 | for (p = longopts, option_index = 0; p->name; p++, option_index++) | 841 | for (p = longopts, option_index = 0; p->name; p++, option_index++) |
| 842 | if (!strncmp (p->name, nextchar, nameend - nextchar)) | 842 | if (strneq (p->name, nextchar, nameend - nextchar)) |
| 843 | { | 843 | { |
| 844 | if ((unsigned int) (nameend - nextchar) == strlen (p->name)) | 844 | if ((unsigned int) (nameend - nextchar) == strlen (p->name)) |
| 845 | { | 845 | { |