Mercurial > mplayer.hg
diff stream/cache2.c @ 30557:74a6c2a3dcce
stream: Mark functions not used outside of their files as static.
| author | diego |
|---|---|
| date | Tue, 16 Feb 2010 16:32:38 +0000 |
| parents | ce0122361a39 |
| children | f73aca2453a3 |
line wrap: on
line diff
--- a/stream/cache2.c Tue Feb 16 16:22:17 2010 +0000 +++ b/stream/cache2.c Tue Feb 16 16:32:38 2010 +0000 @@ -93,13 +93,15 @@ int cache_fill_status=0; -void cache_stats(cache_vars_t* s){ +static void cache_stats(cache_vars_t *s) +{ int newb=s->max_filepos-s->read_filepos; // new bytes in the buffer mp_msg(MSGT_CACHE,MSGL_INFO,"0x%06X [0x%06X] 0x%06X ",(int)s->min_filepos,(int)s->read_filepos,(int)s->max_filepos); mp_msg(MSGT_CACHE,MSGL_INFO,"%3d %% (%3d%%)\n",100*newb/s->buffer_size,100*min_fill/s->buffer_size); } -int cache_read(cache_vars_t* s,unsigned char* buf,int size){ +static int cache_read(cache_vars_t *s, unsigned char *buf, int size) +{ int total=0; while(size>0){ int pos,newb,len; @@ -145,7 +147,8 @@ return total; } -int cache_fill(cache_vars_t* s){ +static int cache_fill(cache_vars_t *s) +{ int back,back2,newb,space,len,pos; off_t read=s->read_filepos;
