Skip to content

Commit

Permalink
Refactor command-line parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Drozdowski committed Sep 23, 2023
1 parent e5adfc5 commit 38bab5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imyplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ main (
/* Parsing the command line */
#if (defined HAVE_GETOPT_H) && (defined HAVE_GETOPT_LONG)
optind = 0;
while (1==1)
do
{
opt_char = getopt_long ( argc, argv, "Vh?ld:e:o:f:", opts, NULL );
if ( opt_char == -1 )
Expand Down Expand Up @@ -434,7 +434,7 @@ main (
opt_file = 0;
}
# endif
}
} while (opt_char != -1 );
imyp_optind = optind;
#else
for ( i = 1 ; i < (unsigned int)argc; i++ ) /* argv[0] is the program name */
Expand Down

0 comments on commit 38bab5a

Please sign in to comment.