Commit b499578d authored by Benjamin REIS's avatar Benjamin REIS

fix cast && better char* management

parent 2b1f9ea1
......@@ -96,7 +96,7 @@ void NetsimCommand::exec(Daemon* app, const string& args) {
params.loss_rate = (float)atoi(value);
}
if (fmtp_get_value(parameters.c_str(), "latency", value, sizeof(value))) {
params.latency = atoi(value);
params.latency = (uint32_t)atoi(value);
}
if (fmtp_get_value(parameters.c_str(), "consecutive_loss_probability", value, sizeof(value))) {
params.consecutive_loss_probability = (float)atof(value);
......
......@@ -635,7 +635,7 @@ string Daemon::readPipe() {
pfd[1].fd = mChildFd;
nfds++;
}
int err = poll(pfd, nfds, 50);
int err = poll(pfd, (nfds_t)nfds, 50);
if (err > 0) {
if (mServerFd != (ortp_pipe_t)-1 && (pfd[0].revents & POLLIN)) {
struct sockaddr_storage addr;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment