Commit d839dbfb authored by massiot's avatar massiot

* dvblast.c: Fix for getopt on unicode consoles, patch courtesy of Andy Gatward.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@12 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent ce2aea66
...@@ -200,19 +200,15 @@ int main( int i_argc, char **pp_argv ) ...@@ -200,19 +200,15 @@ int main( int i_argc, char **pp_argv )
{ {
struct sched_param param; struct sched_param param;
int i_error; int i_error;
char c;
if ( i_argc == 1 ) if ( i_argc == 1 )
usage(); usage();
msg_Warn( NULL, "restarting" ); msg_Warn( NULL, "restarting" );
for ( ; ; ) while ( ( c = getopt(i_argc, pp_argv, "q::c:r:t:o:i:a:n:f:s:v:pb:m:uUd:h")) != (char)EOF )
{ {
char c;
if ( (c = getopt(i_argc, pp_argv, "q::c:r:t:o:i:a:n:f:s:v:pb:m:uUd:h")) == -1 )
break;
switch ( c ) switch ( c )
{ {
case 'q': case 'q':
......
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