diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-17 22:55:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-17 22:55:00 +0200 |
commit | 68eb35b886af4134bf746312b53d0d83be414286 (patch) | |
tree | 2db8b82daa3e517db9e1071799292f6b23e14c8d /libavutil/avstring.c | |
parent | 107460c1e9b6a0c348b35f105cc89ef2ac5edc79 (diff) | |
download | ffmpeg-68eb35b886af4134bf746312b53d0d83be414286.tar.gz |
avstring: fix return discards qualifiers from pointer target type.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/avstring.c')
-rw-r--r-- | libavutil/avstring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/avstring.c b/libavutil/avstring.c index 4cebbe04a6..4c504482da 100644 --- a/libavutil/avstring.c +++ b/libavutil/avstring.c @@ -51,11 +51,11 @@ int av_stristart(const char *str, const char *pfx, const char **ptr) char *av_stristr(const char *s1, const char *s2) { if (!*s2) - return s1; + return (char*)(intptr_t)s1; do { if (av_stristart(s1, s2, NULL)) - return s1; + return (char*)(intptr_t)s1; } while (*s1++); return NULL; |