[NeoStats-Devel] [Commits] r91 - in branches/3.0: . Questions
[email protected] Tue, 9 Aug 2005 22:29:23 +1000
| Newsgroups | gmane.comp.neostats.devel |
|---|---|
| Message-ID | <[email protected]> |
Author: Fish
Date: Tue Aug 9 20:29:17 2005
New Revision: 91
Added:
branches/3.0/Questions/trivques.tar.gz (contents, props changed)
Modified:
branches/3.0/RELNOTES (props changed)
branches/3.0/TriviaServ.c
branches/3.0/triviaserv.vcproj (props changed)
Log:
fix TriviaServ AddTimer Calls
Added: branches/3.0/Questions/trivques.tar.gz
==============================================================================
Binary file. No diff available.
Modified: branches/3.0/TriviaServ.c
==============================================================================
--- branches/3.0/TriviaServ.c (original)
+++ branches/3.0/TriviaServ.c Tue Aug 9 20:29:17 2005
@@ -44,10 +44,10 @@
const char *questpath = "data/TSQuestions/";
int tvs_get_settings();
-int tvs_processtimer (void);
-int tvs_dailytimer (void);
-int tvs_weeklytimer (void);
-int tvs_monthlytimer (void);
+int tvs_processtimer (void *);
+int tvs_dailytimer (void *);
+int tvs_weeklytimer (void *);
+int tvs_monthlytimer (void *);
int tvs_clearscoretimers (int cleartype);
Bot *tvs_bot;
@@ -164,11 +164,11 @@
OnlineTChan(c);
}
/* kick of the question/answer timer */
- AddTimer (TIMER_TYPE_INTERVAL, tvs_processtimer, "tvs_processtimer", 10);
+ AddTimer (TIMER_TYPE_INTERVAL, tvs_processtimer, "tvs_processtimer", 10, NULL);
/* kick of the reset scores timers */
- AddTimer (TIMER_TYPE_DAILY, tvs_dailytimer, "tvs_dailytimer", 0);
- AddTimer (TIMER_TYPE_WEEKLY, tvs_weeklytimer, "tvs_weeklytimer", 0);
- AddTimer (TIMER_TYPE_MONTHLY, tvs_monthlytimer, "tvs_monthlytimer", 0);
+ AddTimer (TIMER_TYPE_DAILY, tvs_dailytimer, "tvs_dailytimer", 0, NULL);
+ AddTimer (TIMER_TYPE_WEEKLY, tvs_weeklytimer, "tvs_weeklytimer", 0, NULL);
+ AddTimer (TIMER_TYPE_MONTHLY, tvs_monthlytimer, "tvs_monthlytimer", 0, NULL);
return NS_SUCCESS;
}
@@ -404,7 +404,7 @@
/*
* Process Timer to kick off hints or new questions when required
*/
-int tvs_processtimer(void)
+int tvs_processtimer(void *userptr)
{
TriviaChan *tc;
hscan_t hs;
@@ -450,19 +450,19 @@
/*
* Process Timers to clear channel scores
*/
-int tvs_dailytimer(void)
+int tvs_dailytimer(void *userptr)
{
SET_SEGV_LOCATION();
return tvs_clearscoretimers(1);
}
-int tvs_weeklytimer(void)
+int tvs_weeklytimer(void *userptr)
{
SET_SEGV_LOCATION();
return tvs_clearscoretimers(2);
}
-int tvs_monthlytimer(void)
+int tvs_monthlytimer(void *userptr)
{
int i;