From b6f5d703b010fa5e4cd1d082ea70fe0cc27fb9e9 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 26 Apr 2005 00:58:31 +0000 Subject: Major code tidyup (-W) - expect a few belches git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1190 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_park.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_park.cpp') diff --git a/src/modules/m_park.cpp b/src/modules/m_park.cpp index 4407426b8..123a4dbe2 100644 --- a/src/modules/m_park.cpp +++ b/src/modules/m_park.cpp @@ -68,8 +68,8 @@ void handle_park(char **parameters, int pcnt, userrec *user) { awaylog* aw; char msg[MAXBUF]; - long key = abs(random() * 12345); - snprintf(msg,MAXBUF,"You are now parked. To unpark use /UNPARK %s %d",user->nick,key); + unsigned long key = abs(random() * 12345); + snprintf(msg,MAXBUF,"You are now parked. To unpark use /UNPARK %s %lu",user->nick,key); Srv->UserToPseudo(user,std::string(msg)); aw = new awaylog; user->Extend("park_awaylog",(char*)aw); @@ -84,7 +84,7 @@ void handle_park(char **parameters, int pcnt, userrec *user) void handle_parkstats(char **parameters, int pcnt, userrec *user) { char status[MAXBUF]; - snprintf(status,MAXBUF,"NOTICE %s :There are a total of %d parked clients on this server, with a maximum of %d parked sessions allowed per user.",user->nick,pinfo.size(),ConcurrentParks); + snprintf(status,MAXBUF,"NOTICE %s :There are a total of %lu parked clients on this server, with a maximum of %lu parked sessions allowed per user.",user->nick,(unsigned long)pinfo.size(),(unsigned long)ConcurrentParks); Srv->SendServ(user->fd,status); } -- cgit v1.3.1-10-gc9f91