Commit 465e3f10 authored by Christophe Massiot's avatar Christophe Massiot

* More getopt() related fixes.

parent 64379de3
......@@ -220,7 +220,7 @@ int main( int i_argc, char **pp_argv )
msg_Warn( NULL, "restarting" );
while ( ( c = getopt(i_argc, pp_argv, "q::c:r:t:o:i:a:n:f:s:S:v:pb:m:uUTd:eh")) != (int)EOF )
while ( ( c = getopt(i_argc, pp_argv, "q::c:r:t:o:i:a:n:f:s:S:v:pb:m:uUTd:eh")) != -1 )
{
switch ( c )
{
......
......@@ -58,7 +58,7 @@ int main( int i_argc, char **ppsz_argv )
for ( ; ; )
{
char c;
int c;
if ( (c = getopt(i_argc, ppsz_argv, "r:h")) == -1 )
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment