aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-03-03 06:40:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-03-03 06:40:36 +0000
commitffe5c462247ca9854ba981debe9559e2f00bb211 (patch)
tree38fa92175136b1de890b401b2e4863237d75094f
parent3242ea5f66d7e5714538a11832009cc23762b174 (diff)
Add (void) on our uses of the swrite() macro when we don't read the return
code as this makes compiler warnings. We *should* fix the code to deal with the return codes instead...
-rw-r--r--lib/telnet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 632992dfb..a3f3c8b59 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -263,7 +263,7 @@ static void send_negotiation(struct connectdata *conn, int cmd, int option)
buf[1] = cmd;
buf[2] = option;
- swrite(conn->firstsocket, buf, 3);
+ (void)swrite(conn->firstsocket, buf, 3);
printoption(conn->data, "SENT", cmd, option);
}
@@ -827,7 +827,7 @@ static void suboption(struct connectdata *conn)
snprintf((char *)temp, sizeof(temp),
"%c%c%c%c%s%c%c", IAC, SB, TELOPT_TTYPE,
TELQUAL_IS, tn->subopt_ttype, IAC, SE);
- swrite(conn->firstsocket, temp, len);
+ (void)swrite(conn->firstsocket, temp, len);
printsub(data, '>', &temp[2], len-2);
break;
case TELOPT_XDISPLOC:
@@ -835,7 +835,7 @@ static void suboption(struct connectdata *conn)
snprintf((char *)temp, sizeof(temp),
"%c%c%c%c%s%c%c", IAC, SB, TELOPT_XDISPLOC,
TELQUAL_IS, tn->subopt_xdisploc, IAC, SE);
- swrite(conn->firstsocket, temp, len);
+ (void)swrite(conn->firstsocket, temp, len);
printsub(data, '>', &temp[2], len-2);
break;
case TELOPT_NEW_ENVIRON:
@@ -857,7 +857,7 @@ static void suboption(struct connectdata *conn)
snprintf((char *)&temp[len], sizeof(temp) - len,
"%c%c", IAC, SE);
len += 2;
- swrite(conn->firstsocket, temp, len);
+ (void)swrite(conn->firstsocket, temp, len);
printsub(data, '>', &temp[2], len-2);
break;
}