summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-30 16:54:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-30 16:54:15 +0100
commit32de2831036ae0ecdfa7bfdb3d59c1ae2095bbc8 (patch)
tree9fc502e84fd4f90c196d1ab67315c53b854734bd
parentd2e0a276d593ded94401e687f60bee266f3e725e (diff)
downloadffmpeg-streaming-32de2831036ae0ecdfa7bfdb3d59c1ae2095bbc8.zip
ffmpeg-streaming-32de2831036ae0ecdfa7bfdb3d59c1ae2095bbc8.tar.gz
avstring: fix "warning: return discards const qualifier from pointer target type"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/avstring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/avstring.c b/libavutil/avstring.c
index 2f00374..e2422c0 100644
--- a/libavutil/avstring.c
+++ b/libavutil/avstring.c
@@ -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;
OpenPOWER on IntegriCloud