Mercurial > mplayer.hg
changeset 13352:166a12bd5470
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>
author | faust3 |
---|---|
date | Thu, 16 Sep 2004 08:12:05 +0000 |
parents | 698fe63084d3 |
children | 65207324b932 |
files | osdep/vbelib.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/osdep/vbelib.c Thu Sep 16 07:58:19 2004 +0000 +++ b/osdep/vbelib.c Thu Sep 16 08:12:05 2004 +0000 @@ -111,8 +111,8 @@ 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;