Commit 28b2f3a0 authored by Andy Gatward's avatar Andy Gatward Committed by Christophe Massiot

* dvblast.c: Fix for getopt on unicode consoles.

parent 9bfcae27
...@@ -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