[NeoStats-Devel] [Commits] r29 - Trunk

[email protected] Tue, 9 Aug 2005 22:17:37 +1000
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Fish
Date: Tue Aug  9 20:17:31 2005
New Revision: 29

Modified:
   Trunk/bomb.c
   Trunk/gamesserv.h
   Trunk/hilo.c
   Trunk/russian.c
Log:
fix addtimer calls

Modified: Trunk/bomb.c
==============================================================================
--- Trunk/bomb.c	(original)
+++ Trunk/bomb.c	Tue Aug  9 20:17:31 2005
@@ -32,7 +32,7 @@
 
 /* Prototypes */
 void stopbomb( char *nic, STOP_REASON reason );
-int timerupstopbomb(void);
+int timerupstopbomb(void *);
 
 /*
  * Start Bomb Game
@@ -42,7 +42,7 @@
 		return NS_SUCCESS;
 	}
 	irc_chanprivmsg (gs_bot, gameroom[GS_GAME_CHANNEL_BOMB], "\0037A Bomb has been brought into the channel by %s. Don''t be the last one with it.", cmdparams->source->name);
-	AddTimer (TIMER_TYPE_COUNTDOWN, timerupstopbomb, "bombcountdown", countdowntime[GS_GAME_CHANNEL_BOMB]);
+	AddTimer (TIMER_TYPE_COUNTDOWN, timerupstopbomb, "bombcountdown", countdowntime[GS_GAME_CHANNEL_BOMB], NULL);
 	return NS_SUCCESS;
 }
 
@@ -118,7 +118,7 @@
 /*
  * Bomb Timer Finished
 */
-int timerupstopbomb(void)
+int timerupstopbomb(void *userptr)
 {
 	stopbomb( NULL, STOP_NONE );
 	return NS_SUCCESS;

Modified: Trunk/gamesserv.h
==============================================================================
--- Trunk/gamesserv.h	(original)
+++ Trunk/gamesserv.h	Tue Aug  9 20:17:31 2005
@@ -61,7 +61,7 @@
 int startruss (CmdParams* cmdparams);
 int shootruss (CmdParams* cmdparams);
 void stopruss(char *nic, char *reason);
-int timerupstopruss(void);
+int timerupstopruss(void *);
 
 /*
  * HiLo Game Help
@@ -75,7 +75,7 @@
 int starthilo(CmdParams* cmdparams);
 int guesshilo(CmdParams* cmdparams);
 void stophilo(char *nic, int hlg);
-int timerupstophilo(void);
+int timerupstophilo(void *);
 
 /*
  * Tic-Tac-Toe Game Help

Modified: Trunk/hilo.c
==============================================================================
--- Trunk/hilo.c	(original)
+++ Trunk/hilo.c	Tue Aug  9 20:17:31 2005
@@ -37,7 +37,7 @@
 	num = (num_low + (rand() % 999) + 1);
 	num_high = (num_low + 1000);
 	irc_chanprivmsg (gs_bot, gameroom[GS_GAME_CHANNEL_HILO], "\0037A game of HiLo has been started by %s. Can you guess the number between %d and %d.", cmdparams->source->name, num_low, num_high);
-	AddTimer (TIMER_TYPE_COUNTDOWN, timerupstophilo, "hilocountdown", countdowntime[GS_GAME_CHANNEL_HILO]);
+	AddTimer (TIMER_TYPE_COUNTDOWN, timerupstophilo, "hilocountdown", countdowntime[GS_GAME_CHANNEL_HILO], NULL);
 	return NS_SUCCESS;
 }
 
@@ -83,7 +83,7 @@
 /*
  * HiLO Timer Finished
 */
-int timerupstophilo(void) {
+int timerupstophilo(void *userptr) {
 	stophilo( "", 0);
 	return NS_SUCCESS;
 }

Modified: Trunk/russian.c
==============================================================================
--- Trunk/russian.c	(original)
+++ Trunk/russian.c	Tue Aug  9 20:17:31 2005
@@ -31,7 +31,7 @@
 		return NS_SUCCESS;
 	}
 	irc_chanprivmsg (gs_bot, gameroom[GS_GAME_CHANNEL_RUSS], "\0037Russian Roulette has been started by %s. Who will die this time?", cmdparams->source->name);
-	AddTimer (TIMER_TYPE_COUNTDOWN, timerupstopruss, "russcountdown", countdowntime[GS_GAME_CHANNEL_RUSS]);
+	AddTimer (TIMER_TYPE_COUNTDOWN, timerupstopruss, "russcountdown", countdowntime[GS_GAME_CHANNEL_RUSS], NULL);
 	return NS_SUCCESS;
 }
 
@@ -117,7 +117,7 @@
 /*
  * Russian Roulette Timer Finished
 */
-int timerupstopruss(void) {
+int timerupstopruss(void *userptr) {
 	stopruss( "", "");
 	return NS_SUCCESS;
 }