Browse Source

avstring: fix "warning: return discards const qualifier from pointer target type"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
32de283103
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavutil/avstring.c

+ 2
- 2
libavutil/avstring.c View File

@@ -69,11 +69,11 @@ char *av_strnstr(const char *haystack, const char *needle, size_t hay_length)
{
size_t needle_len = strlen(needle);
if (!needle_len)
return haystack;
return (char*)haystack;
while (hay_length >= needle_len) {
hay_length--;
if (!memcmp(haystack, needle, needle_len))
return haystack;
return (char*)haystack;
haystack++;
}
return NULL;


Loading…
Cancel
Save