diff options
author | Eric Blossom | 2010-10-01 02:53:48 -0700 |
---|---|---|
committer | Eric Blossom | 2010-10-01 02:53:48 -0700 |
commit | 58a9c0498ee8df542a9eddeb0179995c8f03ca8e (patch) | |
tree | d0338a9bc3d5752ffaa96b30f89897e0f5f6e3bc /vrt/lib | |
parent | f989d64d3924ce4b64d67fdb4a1d96963d71bf8b (diff) | |
download | gnuradio-58a9c0498ee8df542a9eddeb0179995c8f03ca8e.tar.gz gnuradio-58a9c0498ee8df542a9eddeb0179995c8f03ca8e.tar.bz2 gnuradio-58a9c0498ee8df542a9eddeb0179995c8f03ca8e.zip |
Remove warnings
Diffstat (limited to 'vrt/lib')
-rw-r--r-- | vrt/lib/socket_rx_buffer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |