Skip to content

Commit 3ee526b

Browse files
pdgendtcarlescufi
authored andcommitted
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 <[email protected]>
1 parent d7513fb commit 3ee526b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/audio/codec_shell.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include <stdlib.h>
78
#include <zephyr/shell/shell.h>
89
#include <zephyr/audio/codec.h>
910

@@ -55,7 +56,7 @@ static const struct args_index args_indx = {
5556
.value = 4,
5657
};
5758

58-
static int parse_named_int(const char *name, const char *keystack[], size_t count)
59+
static int parse_named_int(const char *name, const char *const keystack[], size_t count)
5960
{
6061
char *endptr;
6162
int i;

0 commit comments

Comments
 (0)