tweaks for windows build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10719 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-12-11 20:52:04 +00:00
parent e3fba6f719
commit 186c98b6d7
2 changed files with 9 additions and 9 deletions

View File

@ -1206,11 +1206,11 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
switch_set_string(expires_str, "0");
kill_handle = 1;
} else if (exptime > 0) {
switch_snprintf(sstr, sizeof(sstr), "active;expires=%d", exptime);
switch_snprintf(sstr, sizeof(sstr), "active;expires=%u", (unsigned)exptime);
} else {
long delta = exptime * -1;
switch_snprintf(sstr, sizeof(sstr), "active;expires=%d", delta);
switch_snprintf(expires_str, sizeof(expires_str), "%d", delta);
unsigned delta = (unsigned) (exptime * -1);
switch_snprintf(sstr, sizeof(sstr), "active;expires=%u", delta);
switch_snprintf(expires_str, sizeof(expires_str), "%u", delta);
nua_dialog_usage_set_refresh_range(nh->nh_ds->ds_usage, delta, delta);
}

View File

@ -1326,11 +1326,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
ringback.fh = &ringback.fhb;
} else if (!strncasecmp(ringback_data, "silence", 7)) {
const char *p = ringback_data + 7;
if (*p == ':') {
p++;
if (p) {
ringback.silence = atoi(p);
const char *c = ringback_data + 7;
if (*c == ':') {
c++;
if (c) {
ringback.silence = atoi(c);
}
}
if (ringback.silence <= 0) {