Fix function prototype warnings for C23 compatibility
- Add proper function prototypes: fatal(), my_exit(), set_order() - Fix function pointer types to match call sites: void (*func)(int) - Remove conflicting localtime() declaration in rip.c - Fix incorrect new_item() call in state.c (remove unused argument) Result: Zero compilation warnings, C23 compatible. See MODERNIZATION_LOG.md for detailed analysis.
This commit is contained in:
4
daemon.c
4
daemon.c
@@ -63,7 +63,7 @@ find_slot(void (*func)())
|
||||
* Start a daemon, takes a function.
|
||||
*/
|
||||
void
|
||||
start_daemon(void (*func)(), int arg, int type)
|
||||
start_daemon(void (*func)(int), int arg, int type)
|
||||
{
|
||||
register struct delayed_action *dev;
|
||||
|
||||
@@ -117,7 +117,7 @@ do_daemons(int flag)
|
||||
* Start a fuse to go off in a certain number of turns
|
||||
*/
|
||||
void
|
||||
fuse(void (*func)(), int arg, int time, int type)
|
||||
fuse(void (*func)(int), int arg, int time, int type)
|
||||
{
|
||||
register struct delayed_action *wire;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user