From 5784282ef6a8a0e58c98de43d0027f41eaecd74d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 5 Dec 2013 15:58:15 +0100 Subject: Fix 64bit size_t in format string. --- src/connectionhandler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/connectionhandler.cc') diff --git a/src/connectionhandler.cc b/src/connectionhandler.cc index fe83861..1a4dce1 100644 --- a/src/connectionhandler.cc +++ b/src/connectionhandler.cc @@ -43,7 +43,7 @@ void ConnectionHandler::init(clientid_t clientid) DEBUG(conn, "Adding client %p to connection list\n", clientid); connlist[clientid] = std::set(); - DEBUG(conn, "Connections (%d):\n", connlist.size()); + DEBUG(conn, "Connections (%d):\n", (int)connlist.size()); ConnectionList::iterator it; for(it = connlist.begin(); it != connlist.end(); it++) { DEBUG(conn, "\t%p\n", it->first); @@ -86,7 +86,7 @@ void ConnectionHandler::unobserve(clientid_t clientid, taskid_t taskid) ObserverList ConnectionHandler::observerlist(TaskIdList tasks) { - DEBUG(conn, "Observerlist request (#tasks: %d)\n", tasks.size()); + DEBUG(conn, "Observerlist request (#tasks: %d)\n", (int)tasks.size()); ObserverList clients; for(TaskIdList::iterator i = tasks.begin(); i != tasks.end(); i++) { -- cgit v1.2.3