diff --git a/daemon/daemon.cc b/daemon/daemon.cc
index e493c5451b294904967fb1636f809a13d7dd0d9e..2f82a6e86798c297b514f8fad922e608156c300b 100644
--- a/daemon/daemon.cc
+++ b/daemon/daemon.cc
@@ -515,7 +515,7 @@ void Daemon::uninitCommands() {
 bool Daemon::pullEvent() {
 	bool status = false;
 	ostringstream ostr;
-	ssize_t size = mEventQueue.size();
+	size_t size = mEventQueue.size();
 	
 	if (size != 0) size--;