stdout and stderr are macros --- you can't assign to them. Assignment doesn't make sense anyway, because freopen will always return the same FILE * structure that it got in parameter. patch by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13353 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2004-09-16 08:12:05 +00:00
parent 56f0d012e3
commit 8679873019
1 changed files with 2 additions and 2 deletions

View File

@ -111,8 +111,8 @@ static void hide_terminal_output( void )
my_stderr = fopen(ttyname(fileno(stderr)),"w");
__set_cursor_type(stdout,0);
/*if(isatty(fileno(stdin ))) stdin =freopen("/dev/null","r",stdin );*/
if(isatty(fileno(stdout))) stdout=freopen("/dev/null","w",stdout);
if(isatty(fileno(stderr))) stderr=freopen("/dev/null","w",stderr);
if(isatty(fileno(stdout))) freopen("/dev/null","w",stdout);
if(isatty(fileno(stderr))) freopen("/dev/null","w",stderr);
}
static unsigned hh_int_10_seg;