[Freeswitch-svn] [commit] r10719 - in freeswitch/trunk/src: . mod/endpoints/mod_sofia
FreeSWITCH SVN
mikej at freeswitch.org
Thu Dec 11 12:52:05 PST 2008
Author: mikej
Date: Thu Dec 11 15:52:04 2008
New Revision: 10719
Log:
tweaks for windows build
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
freeswitch/trunk/src/switch_ivr_originate.c
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c Thu Dec 11 15:52:04 2008
@@ -1206,11 +1206,11 @@
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);
}
Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c (original)
+++ freeswitch/trunk/src/switch_ivr_originate.c Thu Dec 11 15:52:04 2008
@@ -1326,11 +1326,11 @@
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) {
More information about the Freeswitch-svn
mailing list