diff -Nuar rogue5.4.4.orig/extern.h rogue5.4.4/extern.h
--- rogue5.4.4.orig/extern.h	2007-09-06 04:08:06.000000000 +0900
+++ rogue5.4.4/extern.h	2024-11-25 15:32:38.468557242 +0900
@@ -131,11 +131,11 @@
 void	doctor();
 void	end_line();
 void    endit(int sig);
-void	fatal();
+void	fatal(char *s);
 void	getltchars();
 void	land();
 void    leave(int);
-void	my_exit();
+void	my_exit(int st);
 void	nohaste();
 void	playit();
 void    playltchars(void);
@@ -144,7 +144,7 @@
 void    resetltchars(void);
 void	rollwand();
 void	runners();
-void	set_order();
+void	set_order(int*, int);
 void	sight();
 void	stomach();
 void	swander();
diff -Nuar rogue5.4.4.orig/main.c rogue5.4.4/main.c
--- rogue5.4.4.orig/main.c	2007-09-06 04:08:06.000000000 +0900
+++ rogue5.4.4/main.c	2024-11-25 15:33:12.378402187 +0900
@@ -238,8 +238,6 @@
     getyx(curscr, y, x);
     mvcur(y, x, oy, ox);
     fflush(stdout);
-    curscr->_cury = oy;
-    curscr->_curx = ox;
 }
 
 /*
diff -Nuar rogue5.4.4.orig/rip.c rogue5.4.4/rip.c
--- rogue5.4.4.orig/rip.c	2007-09-06 04:08:06.000000000 +0900
+++ rogue5.4.4/rip.c	2024-11-25 15:32:38.470185854 +0900
@@ -230,7 +230,6 @@
     char **dp, *killer;
     struct tm *lt;
     static time_t date;
-    struct tm *localtime();
 
     signal(SIGINT, SIG_IGN);
     purse -= purse / 10;
diff -Nuar rogue5.4.4.orig/rogue.h rogue5.4.4/rogue.h
--- rogue5.4.4.orig/rogue.h	2007-09-06 04:08:06.000000000 +0900
+++ rogue5.4.4/rogue.h	2024-11-25 15:32:38.471140388 +0900
@@ -729,7 +729,7 @@
 
 extern struct delayed_action {
     int d_type;
-    void (*d_func)();
+    void (*d_func)(int d_arg);
     int d_arg;
     int d_time;
 } d_list[MAXDAEMONS];
diff -Nuar rogue5.4.4.orig/state.c rogue5.4.4/state.c
--- rogue5.4.4.orig/state.c	2007-09-06 04:08:06.000000000 +0900
+++ rogue5.4.4/state.c	2024-11-25 15:32:38.472070995 +0900
@@ -1413,7 +1413,7 @@
 
     for (i = 0; i < cnt; i++) 
     {
-        l = new_item(sizeof(THING));
+        l = new_item();
 
         memset(l,0,sizeof(THING));
 
