From 58a9c0498ee8df542a9eddeb0179995c8f03ca8e Mon Sep 17 00:00:00 2001 From: Eric Blossom Date: Fri, 1 Oct 2010 02:53:48 -0700 Subject: Remove warnings --- vrt/lib/socket_rx_buffer.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vrt/lib') diff --git a/vrt/lib/socket_rx_buffer.cc b/vrt/lib/socket_rx_buffer.cc index 203a21295..f6fa05c10 100644 --- a/vrt/lib/socket_rx_buffer.cc +++ b/vrt/lib/socket_rx_buffer.cc @@ -108,16 +108,16 @@ namespace vrt { // If we don't get what we asked for, treat it as an error. // Otherwise the radio's probably not going to work reliably anyway. - if (cursize < buflen){ + if (cursize < (int) buflen){ fprintf(stderr, -"socket_rx_buffer: failed to allocate socket receive buffer of size %d.\n", +"socket_rx_buffer: failed to allocate socket receive buffer of size %zd.\n", buflen); fprintf(stderr, "To fix this, please increase the maximum allowed using:\n\n"); fprintf(stderr, - " $ sudo sysctl -w net.core.rmem_max=%d\n\n", buflen); + " $ sudo sysctl -w net.core.rmem_max=%zd\n\n", buflen); fprintf(stderr, -"and/or edit /etc/sysctl.conf: net.core.rmem_max=%d\n\n", buflen); +"and/or edit /etc/sysctl.conf: net.core.rmem_max=%zd\n\n", buflen); return false; } -- cgit