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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user