Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 22cbfed7 authored by rswindell's avatar rswindell
Browse files

Resolve a couple harmless GCC warnings.

parent d9f6fce4
......@@ -2173,7 +2173,7 @@ void passthru_thread(void* arg)
rd = RingBufFree(&sbbs->outbuf);
if(rd > sizeof(inbuf))
if(rd > (int)sizeof(inbuf))
rd = sizeof(inbuf);
rd = recv(sbbs->passthru_socket, inbuf, rd, 0);
......@@ -2212,7 +2212,7 @@ void passthru_thread(void* arg)
rd = telnet_expand((BYTE*)inbuf, rd, telnet_buf, sizeof(telnet_buf), /* expand_cr */false, &bp);
DWORD wr = RingBufWrite(&sbbs->outbuf, bp, rd);
int wr = RingBufWrite(&sbbs->outbuf, bp, rd);
if(wr != rd) {
lprintf(LOG_ERR,"Short-write (%ld of %ld bytes) from passthru socket to outbuf"
,(long)wr, (long)rd);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment