drivers: audio: Codec shell fix compiler warnings

This commit fixes the following compiler warnings:
* implicit declaration of function 'strtoul'; did you mean 'strtok'?
* passing argument 2 of 'parse_named_int' discards 'const' qualifier

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2023-11-16 10:06:02 +01:00 committed by Carles Cufí
parent d7513fb526
commit 3ee526b4c3

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdlib.h>
#include <zephyr/shell/shell.h>
#include <zephyr/audio/codec.h>
@ -55,7 +56,7 @@ static const struct args_index args_indx = {
.value = 4,
};
static int parse_named_int(const char *name, const char *keystack[], size_t count)
static int parse_named_int(const char *name, const char *const keystack[], size_t count)
{
char *endptr;
int i;