# HG changeset patch # User ib # Date 1299684970 0 # Node ID 0dc9d64cd64ef0e9e44e42f08aace348912f8bfc # Parent 5509eb454848c2376844eee43379752bcdf14b85 Make functions static that are only used inside the file. diff -r 5509eb454848 -r 0dc9d64cd64e gui/mplayer/gui_common.c --- a/gui/mplayer/gui_common.c Wed Mar 09 14:15:14 2011 +0000 +++ b/gui/mplayer/gui_common.c Wed Mar 09 15:36:10 2011 +0000 @@ -107,7 +107,7 @@ } } -char *Translate(char *str) +static char *Translate(char *str) { static char trbuf[512]; char tmp[512]; @@ -310,7 +310,7 @@ return trbuf; } -void PutImage(txSample *bf, int x, int y, int max, int ofs) +static void PutImage(txSample *bf, int x, int y, int max, int ofs) { int i = 0, ix, iy; uint32_t *buf = NULL; @@ -350,7 +350,7 @@ #endif } -void SimplePotmeterPutImage(txSample *bf, int x, int y, float frac) +static void SimplePotmeterPutImage(txSample *bf, int x, int y, float frac) { int i = 0, w, r, ix, iy; uint32_t *buf = NULL; diff -r 5509eb454848 -r 0dc9d64cd64e gui/mplayer/gui_common.h --- a/gui/mplayer/gui_common.h Wed Mar 09 14:15:14 2011 +0000 +++ b/gui/mplayer/gui_common.h Wed Mar 09 15:36:10 2011 +0000 @@ -23,9 +23,6 @@ #define DLABEL_DELAY 2500 // in milliseconds -void PutImage(txSample *bf, int x, int y, int max, int ofs); void Render(wsTWindow *window, wItem *Items, int nrItems, char *db, int size); -void SimplePotmeterPutImage(txSample *bf, int x, int y, float frac); -char *Translate(char *str); #endif /* MPLAYER_GUI_GUI_COMMON_H */