Daemons and fuses now return void.
Functions for starting and stopping daemons and fuses now expect the type 'void (*func)()'. Only a few functions in XRogue needed to be modified to fit. Determining the type of the argument is left for a later date. Building with GCC5 should now produce less than 200 lines of warnings per game.
This commit is contained in:
parent
6dfde944f0
commit
0a354903e0
14 changed files with 91 additions and 96 deletions
|
|
@ -74,7 +74,7 @@ f_slot(void)
|
|||
*/
|
||||
|
||||
struct delayed_action *
|
||||
find_slot(int (*func)())
|
||||
find_slot(void (*func)())
|
||||
{
|
||||
reg int i;
|
||||
reg struct delayed_action *dev;
|
||||
|
|
@ -91,7 +91,7 @@ find_slot(int (*func)())
|
|||
*/
|
||||
|
||||
void
|
||||
start_daemon(int (*dfunc)(), VOID *arg, int type)
|
||||
start_daemon(void (*dfunc)(), VOID *arg, int type)
|
||||
{
|
||||
reg struct delayed_action *dev;
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ start_daemon(int (*dfunc)(), VOID *arg, int type)
|
|||
*/
|
||||
|
||||
void
|
||||
kill_daemon(int (*dfunc)())
|
||||
kill_daemon(void (*dfunc)())
|
||||
{
|
||||
reg struct delayed_action *dev;
|
||||
reg int i;
|
||||
|
|
@ -164,7 +164,7 @@ do_daemons(int flag)
|
|||
*/
|
||||
|
||||
void
|
||||
fuse(int (*dfunc)(), VOID *arg, int time, int type)
|
||||
fuse(void (*dfunc)(), VOID *arg, int time, int type)
|
||||
{
|
||||
reg struct delayed_action *wire;
|
||||
|
||||
|
|
@ -184,7 +184,7 @@ fuse(int (*dfunc)(), VOID *arg, int time, int type)
|
|||
*/
|
||||
|
||||
void
|
||||
lengthen(int (*dfunc)(), int xtime)
|
||||
lengthen(void (*dfunc)(), int xtime)
|
||||
{
|
||||
reg struct delayed_action *wire;
|
||||
|
||||
|
|
@ -199,7 +199,7 @@ lengthen(int (*dfunc)(), int xtime)
|
|||
*/
|
||||
|
||||
void
|
||||
extinguish(int (*dfunc)())
|
||||
extinguish(void (*dfunc)())
|
||||
{
|
||||
reg struct delayed_action *wire;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue