Fix compilation with stupid C++ compilers that shock on valid C

constructs in an extern "C" { }.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17881 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2006-03-16 16:55:51 +00:00
parent badc607fa1
commit 207554c9ea
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ inline static unsigned char* stream_read_line(stream_t *s,unsigned char* mem, in
if(len <= 0 &&
(!cache_stream_fill_buffer(s) ||
(len = s->buf_len-s->buf_pos) <= 0)) break;
end = memchr((void*)(s->buffer+s->buf_pos),'\n',len);
end = (unsigned char*) memchr((void*)(s->buffer+s->buf_pos),'\n',len);
if(end) len = end - (s->buffer+s->buf_pos) + 1;
if(len > 0 && max > 1) {
int l = len > max-1 ? max-1 : len;