diff rogue3/mdport.c @ 212:12e070d1a780

rogue3: replace alarm() calls with a portable function. Calls to alarm() in main.c are replaced with md_start_checkout_timer(), so the #ifdefs around nonportable code can be confined to mdport.c.
author John "Elwin" Edwards
date Fri, 22 Jan 2016 19:19:48 -0500
parents 600873555ec0
children 3d4252fa2ed3
line wrap: on
line diff
--- a/rogue3/mdport.c	Thu Jan 21 21:10:23 2016 -0500
+++ b/rogue3/mdport.c	Fri Jan 22 19:19:48 2016 -0500
@@ -1510,11 +1510,10 @@
 #endif
 }
 
-#if defined(CHECKTIME)
 void
 md_start_checkout_timer(int time)
 {
-    int  checkout();
+    void checkout();
 
 #if defined(HAVE_ALARM) && defined(SIGALRM)
     signal(SIGALRM, checkout);
@@ -1529,7 +1528,6 @@
     signal(SIGALRM, SIG_IGN);
 #endif
 }
-#endif
 
 long
 md_memused()