silence warnings we dont really care about in telnet-client

This commit is contained in:
Sean Middleditch 2009-08-31 14:58:33 -07:00
parent aff7b32cc4
commit ccc035ad6c
1 changed files with 3 additions and 3 deletions

View File

@ -55,11 +55,11 @@ static void _input(char *buffer, int size) {
*/
if (buffer[i] == '\r' || buffer[i] == '\n') {
if (do_echo)
write(STDOUT_FILENO, crlf, 2);
(void)write(STDOUT_FILENO, crlf, 2);
telnet_send(&telnet, crlf, 2);
} else {
if (do_echo)
write(STDOUT_FILENO, buffer + i, 1);
(void)write(STDOUT_FILENO, buffer + i, 1);
telnet_send(&telnet, buffer + i, 1);
}
}
@ -91,7 +91,7 @@ static void _event_handler(telnet_t *telnet, telnet_event_t *ev,
switch (ev->type) {
/* data received */
case TELNET_EV_DATA:
write(STDOUT_FILENO, ev->buffer, ev->size);
(void)write(STDOUT_FILENO, ev->buffer, ev->size);
break;
/* data must be sent */
case TELNET_EV_SEND: