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:
parent
d7513fb526
commit
3ee526b4c3
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue