[commit] r6179 - freeswitch/trunk/src/mod/endpoints/mod_alsa
Author: anthm Date: Wed Nov 7 16:00:09 2007 New Revision: 6179 Modified: freeswitch/trunk/src/mod/endpoints/mod_alsa/mod_alsa.c Log: fix mod_alsa const stuff Modified: freeswitch/trunk/src/mod/endpoints/mod_alsa/mod_alsa.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_alsa/mod_alsa.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_alsa/mod_alsa.c Wed Nov 7 16:00:09 2007 @@ -170,7 +170,7 @@ switch_time_t last; int waitsec = globals.ring_interval * 1000000; switch_file_handle_t fh = { 0 }; - char *val, *ring_file = NULL, *hold_file = NULL; + const char *val, *ring_file = NULL, *hold_file = NULL; int16_t abuf[2048]; tech_pvt = switch_core_session_get_private(session); @@ -802,7 +802,7 @@ if (outbound_profile) { char name[128]; - char *id = !switch_strlen_zero(outbound_profile->caller_id_number) ? outbound_profile->caller_id_number : "na"; + const char *id = !switch_strlen_zero(outbound_profile->caller_id_number) ? outbound_profile->caller_id_number : "na"; snprintf(name, sizeof(name), "Alsa/%s", id); switch_channel_set_name(channel, name); @@ -1409,8 +1409,8 @@ { private_t *tp; int x = 0; - char *cid_name = "n/a"; - char *cid_num = "n/a"; + const char *cid_name = "n/a"; + const char *cid_num = "n/a"; switch_mutex_lock(globals.pvt_lock); for (tp = globals.call_list; tp; tp = tp->next) {
participants (1)
-
Freeswitch SVN