aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-05-16 17:43:27 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-05-16 18:38:15 +0900
commit975d5e70b89481c90df30365c660b3f5043c3150 (patch)
tree65759834052599bcb97705a83cc8d12ac1201f44
parent49790946256a3ecaa7d6d2f31c0987e6cdd30a0e (diff)
Fix: remove the warnings of copy from const
Change-Id: I30023877a5378b7dcdc0dd127d74d7bc99e881b2 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/soundmanager.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/soundmanager.c b/src/soundmanager.c
index cf165e3..cb33854 100644
--- a/src/soundmanager.c
+++ b/src/soundmanager.c
@@ -1260,15 +1260,15 @@ int sm_init()
ev_removed_main_connection = afb_daemon_make_event(cmd_evlist[2]);
ev_sink_mute_state_changed = afb_daemon_make_event(cmd_evlist[3]);
ev_main_connection_state_changed = afb_daemon_make_event(cmd_evlist[4]);
- command_event_list[0].name = cmd_evlist[0];
+ command_event_list[0].name = strdup(cmd_evlist[0]);
command_event_list[0].event = &ev_volume_changed;
- command_event_list[1].name = cmd_evlist[1];
+ command_event_list[1].name = strdup(cmd_evlist[1]);
command_event_list[1].event = &ev_new_connection;
- command_event_list[2].name = cmd_evlist[2];
+ command_event_list[2].name = strdup(cmd_evlist[2]);
command_event_list[2].event = &ev_removed_main_connection;
- command_event_list[3].name = cmd_evlist[3];
+ command_event_list[3].name = strdup(cmd_evlist[3]);
command_event_list[3].event = &ev_sink_mute_state_changed;
- command_event_list[4].name = cmd_evlist[4];
+ command_event_list[4].name = strdup(cmd_evlist[4]);
command_event_list[4].event = &ev_main_connection_state_changed;
/* create routing event */
@@ -1278,15 +1278,15 @@ int sm_init()
ev_async_set_source_state = afb_daemon_make_event(route_evlist[3]);
ev_async_disconnect = afb_daemon_make_event(route_evlist[4]);
- routing_event_list[0].name = route_evlist[0];
+ routing_event_list[0].name = strdup(route_evlist[0]);
routing_event_list[0].event = &ev_set_routing_ready;
- routing_event_list[1].name = route_evlist[1];
+ routing_event_list[1].name = strdup(route_evlist[1]);
routing_event_list[1].event = &ev_set_routing_rundown;
- routing_event_list[2].name = route_evlist[2];
+ routing_event_list[2].name = strdup(route_evlist[2]);
routing_event_list[2].event = &ev_async_connect;
- routing_event_list[3].name = route_evlist[3];
+ routing_event_list[3].name = strdup(route_evlist[3]);
routing_event_list[3].event = &ev_async_set_source_state;
- routing_event_list[4].name = route_evlist[4];
+ routing_event_list[4].name = strdup(route_evlist[4]);
routing_event_list[4].event = &ev_async_disconnect;
/*for(size_t i = 0; i < size; ++i)
{