signedness warnings silence

github
Sean Middleditch 14 years ago
parent a63ff7f427
commit 0003f051d9

@ -932,7 +932,7 @@ void telnet_send(telnet_t *telnet, const char *buffer,
for (l = i = 0; i != size; ++i) {
/* dump prior portion of text, send escaped bytes */
if (buffer[i] == TELNET_IAC) {
if (buffer[i] == (char)TELNET_IAC) {
/* dump prior text if any */
if (i != l)
_send(telnet, buffer + l, i - l);
@ -1017,7 +1017,7 @@ int telnet_printf(telnet_t *telnet, const char *fmt, ...) {
/* send */
for (l = i = 0; i != rs; ++i) {
/* special characters */
if (buffer[i] == TELNET_IAC || buffer[i] == '\r' ||
if (buffer[i] == (char)TELNET_IAC || buffer[i] == '\r' ||
buffer[i] == '\n') {
/* dump prior portion of text */
if (i != l)
@ -1025,7 +1025,7 @@ int telnet_printf(telnet_t *telnet, const char *fmt, ...) {
l = i + 1;
/* IAC -> IAC IAC */
if (buffer[i] == TELNET_IAC)
if (buffer[i] == (char)TELNET_IAC)
telnet_iac(telnet, TELNET_IAC);
/* automatic translation of \r -> CRNUL */
else if (buffer[i] == '\r')

Loading…
Cancel
Save