]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix mod_alsa const stuff
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 7 Nov 2007 21:00:09 +0000 (21:00 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 7 Nov 2007 21:00:09 +0000 (21:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6179 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_alsa/mod_alsa.c

index 1052acebfb1cc88b40ce83361c643adf95ec3d5b..0d20897d9c4efade4d7742c3a9f827b0a6a4caac 100644 (file)
@@ -170,7 +170,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
        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 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
 
                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 @@ static switch_status_t list_calls(char **argv, int argc, switch_stream_handle_t
 {
        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) {