summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 06:14:53 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:48:38 +0300
commit9e7dfe3fa34ca05fb63cd34369f7c847b777516d (patch)
tree8eaf736355431908c87aab9c28e0b7c1fb4f29aa /stream
parentd9aa368a6d8dcbea2cd03b6c2a6c2e6df5fc16ce (diff)
downloadmpv-9e7dfe3fa34ca05fb63cd34369f7c847b777516d.tar.bz2
mpv-9e7dfe3fa34ca05fb63cd34369f7c847b777516d.tar.xz
Mark some functions static
These functions aren't used outside their file and have no prototype in any header. Based on a forgotten patch from 2006 by Stefan Huehner, (stefan huehner org).
Diffstat (limited to 'stream')
-rw-r--r--stream/cache2.c8
-rw-r--r--stream/stream.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/stream/cache2.c b/stream/cache2.c
index 84a58272df..7d67bfb034 100644
--- a/stream/cache2.c
+++ b/stream/cache2.c
@@ -63,13 +63,13 @@ static int min_fill=0;
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;
@@ -115,7 +115,7 @@ int cache_read(cache_vars_t* s,unsigned char* buf,int size){
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;
@@ -191,7 +191,7 @@ int cache_fill(cache_vars_t* s){
}
-cache_vars_t* cache_init(int size,int sector){
+static cache_vars_t* cache_init(int size,int sector){
int num;
#if !defined(WIN32) && !defined(__OS2__)
cache_vars_t* s=shmem_alloc(sizeof(cache_vars_t));
diff --git a/stream/stream.c b/stream/stream.c
index 42ceff1934..f9ce23cfb8 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -121,7 +121,7 @@ static const stream_info_t* const auto_open_streams[] = {
NULL
};
-stream_t* open_stream_plugin(const stream_info_t* sinfo,char* filename,int mode,
+static stream_t* open_stream_plugin(const stream_info_t* sinfo,char* filename,int mode,
char** options, int* file_format, int* ret,
char** redirected_url) {
void* arg = NULL;