aboutsummaryrefslogtreecommitdiffstats
path: root/binding/afm-common.c
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2021-03-01 18:33:22 -0500
committerScott Murray <scott.murray@konsulko.com>2021-03-01 18:37:54 -0500
commita957746338416e51df7d198723111c7585971166 (patch)
treed7f1b00f5f14d6ae29e1a5171a869cc31492576e /binding/afm-common.c
parent46ddd8335119ededf850b20b6d9be9d035a8d8f2 (diff)
Fix building with gcc 10next
Fix up the mix of explicit and automatic array sizes that gcc 10 now complains about. Bug-AGL: SPEC-3819 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I135e26666a6e201f7c3d9b1e16b09cd7fddeba65
Diffstat (limited to 'binding/afm-common.c')
-rw-r--r--binding/afm-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binding/afm-common.c b/binding/afm-common.c
index 93e6f54..635fc7b 100644
--- a/binding/afm-common.c
+++ b/binding/afm-common.c
@@ -19,7 +19,7 @@
#include "afm-common.h"
-const char *gstreamer_control_commands[] = {
+const char *gstreamer_control_commands[NUM_CMDS] = {
"play",
"pause",
"previous",
@@ -34,7 +34,7 @@ const char *gstreamer_control_commands[] = {
};
/* NULLs signal this functional isn't available */
-const char *avrcp_control_commands[] = {
+const char *avrcp_control_commands[NUM_CMDS] = {
"Play",
"Pause",
"Previous",