diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2019-12-25 19:23:18 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-04-09 13:53:36 +0000 |
commit | 15980858d39ac3e4d6954e75c35caf5f8ea18358 (patch) | |
tree | aa8c1904ac6cf53d64849f9b54f183fcfbb9ac6c | |
parent | d8ba41f1d2982afdc5579dd2e73b84bd021e6230 (diff) | |
download | libgnome-volume-control-15980858d39ac3e4d6954e75c35caf5f8ea18358.tar.gz |
test-audio-device-selection: fix -Wdiscarded-qualifiers warnings
-rw-r--r-- | test-audio-device-selection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test-audio-device-selection.c b/test-audio-device-selection.c index 4b930a1..8195f9d 100644 --- a/test-audio-device-selection.c +++ b/test-audio-device-selection.c @@ -8,7 +8,7 @@ typedef struct { GvcHeadsetPortChoice choice; - gchar *name; + const char *name; } AudioSelectionChoice; static AudioSelectionChoice audio_selection_choices[] = { @@ -24,7 +24,7 @@ audio_selection_needed (GvcMixerControl *volume, GvcHeadsetPortChoice choices, gpointer user_data) { - char *args[G_N_ELEMENTS (audio_selection_choices) + 1]; + const char *args[G_N_ELEMENTS (audio_selection_choices) + 1]; guint i, n; int response = -1; @@ -51,7 +51,7 @@ audio_selection_needed (GvcMixerControl *volume, g_print ("What is your choice?\n"); if (scanf ("%d", &res) == 1 && res > 0 && - res < (int) g_strv_length (args)) { + res < (int) g_strv_length ((char **) args)) { response = res; break; } |