diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-01 02:00:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-01 02:00:04 +0000 |
commit | c2d2dec516bd776d6acba7637d2e9ee721394604 (patch) | |
tree | 9c653ac2059ce12ae9004342e22881af2c68794a /src/expand.c | |
parent | 1e40423be84cc3e594d7c64c923f39663549dcca (diff) | |
download | coreutils-c2d2dec516bd776d6acba7637d2e9ee721394604.tar.xz |
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.
Diffstat (limited to 'src/expand.c')
-rw-r--r-- | src/expand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/expand.c b/src/expand.c index 9beb87701..2b5252514 100644 --- a/src/expand.c +++ b/src/expand.c @@ -338,8 +338,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - while ((c = getopt_long (argc, argv, "it:,0123456789", longopts, (int *) 0)) - != EOF) + while ((c = getopt_long (argc, argv, "it:,0123456789", longopts, NULL)) != -1) { switch (c) { |