Skip to content

Commit

Permalink
fix -Wdeprecated-non-prototype in rt_draw.c
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed May 1, 2024
1 parent 9632c83 commit f5a9aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rott/rt_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,13 +751,13 @@ int CalcRotate (objtype *ob)
#define SGN(x) ((x>0) ? (1) : ((x==0) ? (0) : (-1)))

/*--------------------------------------------------------------------------*/
int CompareHeights(s1p,s2p) visobj_t **s1p,**s2p;
int CompareHeights(visobj_t **s1p, visobj_t **s2p)
{
whereami=3;
return SGN((*s1p)->viewheight-(*s2p)->viewheight);
}

void SwitchPointers(s1p,s2p) visobj_t **s1p,**s2p;
void SwitchPointers(visobj_t **s1p, visobj_t **s2p)
{
visobj_t * temp;

Expand Down

0 comments on commit f5a9aef

Please sign in to comment.