Commit ce00127c authored by massiot's avatar massiot

* More getopt() related fixes.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@35 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 0f29ee3d
...@@ -220,7 +220,7 @@ int main( int i_argc, char **pp_argv ) ...@@ -220,7 +220,7 @@ int main( int i_argc, char **pp_argv )
msg_Warn( NULL, "restarting" ); 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 ) switch ( c )
{ {
......
...@@ -58,7 +58,7 @@ int main( int i_argc, char **ppsz_argv ) ...@@ -58,7 +58,7 @@ int main( int i_argc, char **ppsz_argv )
for ( ; ; ) for ( ; ; )
{ {
char c; int c;
if ( (c = getopt(i_argc, ppsz_argv, "r:h")) == -1 ) if ( (c = getopt(i_argc, ppsz_argv, "r:h")) == -1 )
break; 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