diff options
author | Yang Tse <yangsita@gmail.com> | 2006-07-19 21:14:02 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-07-19 21:14:02 +0000 |
commit | d157c292693972658d138475276dca85df77539b (patch) | |
tree | d51651e65fe7145775ae0562c5a25cbdbce9dc8d /lib/telnet.c | |
parent | 4d2e81661bbea7164209b5aac28c4f3d3f5dae8c (diff) | |
download | curl-d157c292693972658d138475276dca85df77539b.tar.gz |
Fix compiler warnings
Diffstat (limited to 'lib/telnet.c')
-rw-r--r-- | lib/telnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/telnet.c b/lib/telnet.c index 29e053e15..5f94807df 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -295,8 +295,8 @@ static void send_negotiation(struct connectdata *conn, int cmd, int option) struct SessionHandle *data = conn->data; buf[0] = CURL_IAC; - buf[1] = cmd; - buf[2] = option; + buf[1] = (unsigned char)cmd; + buf[2] = (unsigned char)option; bytes_written = swrite(conn->sock[FIRSTSOCKET], buf, 3); if(bytes_written < 0) { |