Skip to content

Commit fd8cbd3

Browse files
committed
xml_utils: Fix -Wdiscarded-qualifiers treated as error
Make sure to not discard const. Hence, qualify char* as const. Signed-off-by: Nuno Sá <nuno.sa@analog.com>
1 parent f5a8279 commit fd8cbd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ char **get_xml_list(char * buf_dir_name, int *list_size)
8080
const struct dirent *ent;
8181
DIR *d;
8282
char **list = NULL, **list1 = NULL;
83-
char *extension_ptr;
83+
const char *extension_ptr;
8484
int cnt = 0;
8585
int n = 0;
8686

0 commit comments

Comments
 (0)