Skip to content

Commit

Permalink
Convert some old style C to modern C to quiet compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Dec 4, 2012
1 parent b3c936e commit 152cd6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/visualisations/goom/filters.c
Expand Up @@ -38,14 +38,14 @@ void c_zoom (unsigned int *expix1, unsigned int *expix2, unsigned int prevX, uns
#ifdef MMX

void zoom_filter_xmmx (int prevX, int prevY, unsigned int *expix1, unsigned int *expix2, int *brutS, int *brutD, int buffratio, int precalCoef[16][16]);
int zoom_filter_xmmx_supported ();
int zoom_filter_xmmx_supported (void);
void zoom_filter_mmx (int prevX, int prevY, unsigned int *expix1, unsigned int *expix2, int *brutS, int *brutD, int buffratio, int precalCoef[16][16]);
int zoom_filter_mmx_supported ();
int zoom_filter_mmx_supported (void);

static int zf_use_xmmx = 0;
static int zf_use_mmx = 0;

static void select_zoom_filter () {
static void select_zoom_filter (void) {
static int firsttime = 1;
if (firsttime){
if (zoom_filter_xmmx_supported()) {
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/visualisations/goom/goom_tools.h
Expand Up @@ -18,7 +18,7 @@ static unsigned short rand_pos;
while (rand_pos != 0) rand_tab [rand_pos++] = rand () ;


static inline int RAND() {
static inline int RAND(void) {
++rand_pos;
return rand_tab[rand_pos];
}
Expand Down
3 changes: 1 addition & 2 deletions mythtv/libs/libmythtv/visualisations/goom/ifs.c
Expand Up @@ -147,7 +147,6 @@ static FRACTAL *Root = (FRACTAL *) NULL, *Cur_F;
IFSPoint *Buf;
static int Cur_Pt;


/*****************************************************/

static DBL
Expand Down Expand Up @@ -385,7 +384,7 @@ Trace (FRACTAL * F, F_PT xo, F_PT yo)
}

static void
Draw_Fractal ( /* ModeInfo * mi */ )
Draw_Fractal ( void /* ModeInfo * mi */ )
{
FRACTAL *F = Root;
int i, j;
Expand Down

0 comments on commit 152cd6e

Please sign in to comment.