rem: if ((bytes = tcp_peek(download->con, buf, sizeof(buf))) <= 0) {
add: if ((recvd = tcp_peek(download->con, buf, sizeof(buf))) <= 0) {
context: static void on_download_read_filesize(int fd, input_id input, void *udata){	OpnDownload *download = (OpnDownload *) udata;	uint8_t buf[128];	int bytes, i;	uint32_t size = 0;	if (net_sock_error(fd)) {		opn_download_free(download);		return;	}	input_remove(input);	/* get the filesize */	if ((bytes = tcp_peek(download->con, buf, sizeof(buf))) <= 0) {		opn_download_free(download);		return;	}	buf[bytes] = 0;	for (i = 0; isdigit(buf[i]) && size < download->url->size; i++)		size = (size * 10) + (buf[i] - '0');	tcp_recv(download->con, buf, i);	input_add(fd, download, INPUT_READ, on_download_read_data,	          TIMEOUT_DEF);}