diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-23 19:12:20 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-23 19:12:20 +0000 |
| commit | 8431ac369b2f12ac376798fb01748f52d327164a (patch) | |
| tree | 383144a0a102038cf5fd1aaf780f9594ffb376f1 /src/protocol/inspircd11.c | |
| parent | 5950b11a0f4903cd07c0068a428f499dd64bdd2b (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/protocol/inspircd11.c')
| -rw-r--r-- | src/protocol/inspircd11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index ebc694745..6ea1c2b2c 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -428,7 +428,7 @@ void inspircd_cmd_chghost(const char *nick, const char *vhost) int anope_event_idle(const char *source, int ac, const char **av) { if (ac == 1) { - send_cmd(av[0], "IDLE %s %ld 0", source, (long int) time(NULL)); + send_cmd(av[0], "IDLE %s %ld 0", source, static_cast<long>(time(NULL))); } return MOD_CONT; } @@ -1071,7 +1071,7 @@ int anope_event_nick(const char *source, int ac, const char **av) { User *user; struct in_addr addy; - uint32 *ad = (uint32 *) & addy; + uint32 *ad = reinterpret_cast<uint32 *>(&addy); if (ac != 1) { if (ac == 8) { |
