Browse Source

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
tags/n2.1
Diego Biurrun 12 years ago
parent
commit
0d6d4a9e4a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavutil/avstring.c

+ 2
- 1
libavutil/avstring.c 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);


Loading…
Cancel
Save