fix compiler warnings (unused vars)

remotes/svn/trunk
Richard Fuchs 14 years ago
parent ad96edf929
commit bc16905279

@ -406,7 +406,7 @@ int cdr_create_cdrs(med_entry_t *records, u_int64_t count,
u_int32_t invites = 0;
size_t cdr_size;
char *endtime = NULL, *tmp_endtime = NULL;
char *endtime = NULL;
double unix_endtime = 0, tmp_unix_endtime = 0;
char *call_status;
@ -465,12 +465,10 @@ int cdr_create_cdrs(med_entry_t *records, u_int64_t count,
if(strncmp("200", e->sip_code, 3))
{
/* missed calls have duration of 0 */
tmp_endtime = e->timestamp;
tmp_unix_endtime = e->unix_timestamp;
}
else
{
tmp_endtime = endtime;
tmp_unix_endtime = unix_endtime;
}

@ -19,7 +19,6 @@ int daemonize()
else if(pid == 0)
{
int fds;
int tmp;
setsid();
for(fds = getdtablesize(); fds >= 0; --fds)
{
@ -27,10 +26,10 @@ int daemonize()
close(fds);
}
fds = open("/dev/null", O_RDWR); /* stdin */
tmp = dup(fds); /* stdout */
tmp = dup(fds); /* stderr */
dup(fds); /* stdout */
dup(fds); /* stderr */
umask(027);
tmp = chdir("/");
chdir("/");
}
return 0;

@ -284,7 +284,6 @@ out:
void critical(const char *msg) {
int ret;
ret = write(mediator_lockfd, msg, strlen(msg));
ret = write(mediator_lockfd, "\n", 1);
write(mediator_lockfd, msg, strlen(msg));
write(mediator_lockfd, "\n", 1);
}

Loading…
Cancel
Save