buf[1] = cmd;
buf[2] = option;
- (void)swrite(conn->sock[FIRSTSOCKET], buf, 3);
+ (void)swrite(conn->sock[FIRSTSOCKET], (char *)buf, 3);
printoption(conn->data, "SENT", cmd, option);
}
snprintf((char *)temp, sizeof(temp),
"%c%c%c%c%s%c%c", CURL_IAC, CURL_SB, CURL_TELOPT_TTYPE,
CURL_TELQUAL_IS, tn->subopt_ttype, CURL_IAC, CURL_SE);
- (void)swrite(conn->sock[FIRSTSOCKET], temp, len);
+ (void)swrite(conn->sock[FIRSTSOCKET], (char *)temp, len);
printsub(data, '>', &temp[2], len-2);
break;
case CURL_TELOPT_XDISPLOC:
snprintf((char *)temp, sizeof(temp),
"%c%c%c%c%s%c%c", CURL_IAC, CURL_SB, CURL_TELOPT_XDISPLOC,
CURL_TELQUAL_IS, tn->subopt_xdisploc, CURL_IAC, CURL_SE);
- (void)swrite(conn->sock[FIRSTSOCKET], temp, len);
+ (void)swrite(conn->sock[FIRSTSOCKET], (char *)temp, len);
printsub(data, '>', &temp[2], len-2);
break;
case CURL_TELOPT_NEW_ENVIRON:
snprintf((char *)&temp[len], sizeof(temp) - len,
"%c%c", CURL_IAC, CURL_SE);
len += 2;
- (void)swrite(conn->sock[FIRSTSOCKET], temp, len);
+ (void)swrite(conn->sock[FIRSTSOCKET], (char *)temp, len);
printsub(data, '>', &temp[2], len-2);
break;
}
/* Find the first non-space letter */
for(start=k->p+13;
*start && isspace((int)*start);
- start++);
+ start++)
+ ; /* empty loop */
end = strchr(start, '\r');
if(!end)
if(end) {
/* skip all trailing space letters */
- for(; isspace((int)*end) && (end > start); end--);
+ for(; isspace((int)*end) && (end > start); end--)
+ ; /* empty loop */
/* get length of the type */
len = end-start+1;
/* Find the first non-space letter */
for(start=k->p+17;
*start && isspace((int)*start);
- start++);
+ start++)
+ ; /* empty loop */
/* Record the content-encoding for later use */
if (checkprefix("identity", start))