summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--logd/LogListener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogListener.cpp b/logd/LogListener.cpp
index bef2097da..104a2eb26 100644
--- a/logd/LogListener.cpp
+++ b/logd/LogListener.cpp
@@ -50,7 +50,7 @@ bool LogListener::onDataAvailable(SocketClient *cli) {
50 int socket = cli->getSocket(); 50 int socket = cli->getSocket();
51 51
52 ssize_t n = recvmsg(socket, &hdr, 0); 52 ssize_t n = recvmsg(socket, &hdr, 0);
53 if (n <= (sizeof_log_id_t + sizeof(uint16_t) + sizeof(log_time))) { 53 if (n <= (ssize_t)(sizeof_log_id_t + sizeof(uint16_t) + sizeof(log_time))) {
54 return false; 54 return false;
55 } 55 }
56 56