avstring-test: Mark pointer passed to av_free() as non-const

libavutil/avstring.c:278:9: warning: passing argument 1 of ‘av_free’ discards ‘const’ qualifier from pointer target type
This commit is contained in:
Diego Biurrun 2013-10-19 16:12:49 +02:00
parent 72072bf9de
commit 0d6d4a9e4a
1 changed files with 2 additions and 1 deletions

View File

@ -270,7 +270,8 @@ int main(void)
printf("Testing av_get_token()\n");
for (i = 0; i < FF_ARRAY_ELEMS(strings); i++) {
const char *p = strings[i], *q;
const char *p = strings[i];
char *q;
printf("|%s|", p);
q = av_get_token(&p, ":");
printf(" -> |%s|", q);