/* ret = CtdlIPCHighSpeedReadDownload(ipc, buf, bytes, resume, progress_gauge_callback, cret); */
ret = CtdlIPCEndDownload(ipc, cret);
if (ret / 100 == 2)
- sprintf(cret, "%d|%ld|%s|%s", bytes, last_mod,
+ sprintf(cret, "%d|%ld|%s|%s", (int)bytes, last_mod,
filename, mimetype);
}
return ret;
ret = CtdlIPCHighSpeedReadDownload(ipc, buf, bytes, 0, progress_gauge_callback, cret);
ret = CtdlIPCEndDownload(ipc, cret);
if (ret / 100 == 2)
- sprintf(cret, "%d|%ld|%s|%s", bytes, last_mod,
+ sprintf(cret, "%d|%ld|%s|%s", (int)bytes, last_mod,
filename, mimetype);
}
return ret;
ret = CtdlIPCReadDownload(ipc, buf, bytes, 0, progress_gauge_callback, cret);
ret = CtdlIPCEndDownload(ipc, cret);
if (ret / 100 == 2)
- sprintf(cret, "%d|%ld|%s|%s", bytes, last_mod,
+ sprintf(cret, "%d|%ld|%s|%s", (int)bytes, last_mod,
filename, mimetype);
}
return ret;
if (offset < 0) return -1;
CtdlIPC_lock(ipc);
- sprintf(aaa, "READ %d|%d", offset, bytes);
+ sprintf(aaa, "READ %d|%d", (int)offset, (int)bytes);
CtdlIPC_putline(ipc, aaa);
CtdlIPC_getline(ipc, aaa);
if (aaa[0] != '6')
/* Send all requests at once */
for (i = 0; i < calls; i++) {
- sprintf(aaa, "READ %d|4096", i * 4096 + resume);
+ sprintf(aaa, "READ %d|4096", (int)(i * 4096 + resume) );
CtdlIPC_putline(ipc, aaa);
}
if (!to_write) {
if (feof(fd) || ferror(fd)) break;
}
- sprintf(aaa, "WRIT %d", to_write);
+ sprintf(aaa, "WRIT %d", (int)to_write);
CtdlIPC_putline(ipc, aaa);
CtdlIPC_getline(ipc, aaa);
strcpy(cret, &aaa[4]);
}
error_printf("SSL_read in serv_read:\n");
ERR_print_errors_fp(stderr);
- connection_died();
+ connection_died(NULL);
return;
}
len += rlen;
}
error_printf("SSL_write in serv_write:\n");
ERR_print_errors_fp(stderr);
- connection_died();
+ connection_died(NULL);
return;
}
bytes_written += retval;