From 525986cc0141065b2606807071ce6af22043c80d Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 23 Jul 2007 21:21:15 +0000 Subject: Squash a warning reported by owine git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7519 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 3b9e717df..96eba0469 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -275,7 +275,7 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME) /* Everybody loves boobies. */ time_t time = this->Time(false) - (curr->nping - curr->pingmax); char message[MAXBUF]; - snprintf(message, MAXBUF, "Ping timeout: %ld second%s", time, time > 1 ? "s" : ""); + snprintf(message, MAXBUF, "Ping timeout: %ld second%s", (long)time, time > 1 ? "s" : ""); curr->muted = true; GlobalCulls.AddItem(curr, message); curr->lastping = 1; -- cgit v1.2.3