Skip to content
Snippets Groups Projects
Commit 99351849 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix gcc warnings in previous commit: don't bother with [s]size_t here

parent 020382e9
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3538 passed
...@@ -1818,8 +1818,8 @@ static BYTE* telnet_interpret(sbbs_t* sbbs, BYTE* inbuf, int inlen, ...@@ -1818,8 +1818,8 @@ static BYTE* telnet_interpret(sbbs_t* sbbs, BYTE* inbuf, int inlen,
void sbbs_t::send_telnet_cmd(uchar cmd, uchar opt) void sbbs_t::send_telnet_cmd(uchar cmd, uchar opt)
{ {
char buf[16]; char buf[16];
size_t sz; int sz;
ssize_t result; int result;
if(telnet_mode&TELNET_MODE_OFF) if(telnet_mode&TELNET_MODE_OFF)
return; return;
...@@ -1841,8 +1841,8 @@ void sbbs_t::send_telnet_cmd(uchar cmd, uchar opt) ...@@ -1841,8 +1841,8 @@ void sbbs_t::send_telnet_cmd(uchar cmd, uchar opt)
if(result != sz) if(result != sz)
lprintf(LOG_ERR, "ERROR sending telnet command (%s): send returned %d instead of %d" lprintf(LOG_ERR, "ERROR sending telnet command (%s): send returned %d instead of %d"
,telnet_cmd_desc(cmd) ,telnet_cmd_desc(cmd)
,(int)result ,result
,(int)sz); ,sz);
} }
bool sbbs_t::request_telnet_opt(uchar cmd, uchar opt, unsigned waitforack) bool sbbs_t::request_telnet_opt(uchar cmd, uchar opt, unsigned waitforack)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment