summaryrefslogtreecommitdiff
path: root/src/timeout.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-23 19:12:20 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-23 19:12:20 +0000
commit8431ac369b2f12ac376798fb01748f52d327164a (patch)
tree383144a0a102038cf5fd1aaf780f9594ffb376f1 /src/timeout.c
parent5950b11a0f4903cd07c0068a428f499dd64bdd2b (diff)
Converted many C-style casts to C++-style casts.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1788 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/timeout.c')
-rw-r--r--src/timeout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeout.c b/src/timeout.c
index e8cbf057a..f0c2df417 100644
--- a/src/timeout.c
+++ b/src/timeout.c
@@ -27,7 +27,7 @@ void check_timeouts(void)
time_t t = time(NULL);
if (debug >= 2)
- alog("debug: Checking timeouts at %ld", (long int) t);
+ alog("debug: Checking timeouts at %ld", static_cast<long>(t));
to = timeouts;
while (to) {
@@ -37,7 +37,7 @@ void check_timeouts(void)
}
if (debug >= 4) {
alog("debug: Running timeout 0x%p (code=0x%p repeat=%d)",
- (void *) to, (void *) to->code, to->repeat);
+ static_cast<void *>(to), reinterpret_cast<void *>(to->code), to->repeat);
}
to->code(to);
if (to->repeat) {