1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.

This commit is contained in:
Jim Meyering
1997-02-01 02:00:04 +00:00
parent 1e40423be8
commit c2d2dec516
21 changed files with 23 additions and 35 deletions

View File

@@ -226,7 +226,7 @@ main (int argc, char **argv)
only_file_2 = 1;
both = 1;
while ((c = getopt_long (argc, argv, "123", long_options, (int *) 0)) != EOF)
while ((c = getopt_long (argc, argv, "123", long_options, NULL)) != -1)
switch (c)
{
case 0: