[FFmpeg-cvslog] lavu/parseutils: make small_strptime() return a (non const) char *
Stefano Sabatini
git at videolan.org
Thu Sep 6 00:44:16 CEST 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Sep 5 23:28:52 2012 +0200| [79dcd58d839714e8e645fd4414ee4c3645bc419e] | committer: Stefano Sabatini
lavu/parseutils: make small_strptime() return a (non const) char *
This is consistent with the standard definition of strptime().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=79dcd58d839714e8e645fd4414ee4c3645bc419e
---
libavutil/parseutils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 5884411..5e2644c 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -448,14 +448,14 @@ static int date_get_num(const char **pp,
* function call, or NULL in case the function fails to match all of
* the fmt string and therefore an error occurred
*/
-static const char *small_strptime(const char *p, const char *fmt, struct tm *dt)
+static char *small_strptime(const char *p, const char *fmt, struct tm *dt)
{
int c, val;
for(;;) {
c = *fmt++;
if (c == '\0') {
- return p;
+ return (char *)p;
} else if (c == '%') {
c = *fmt++;
switch(c) {
More information about the ffmpeg-cvslog
mailing list