From 79dcd58d839714e8e645fd4414ee4c3645bc419e Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Wed, 5 Sep 2012 23:28:52 +0200 Subject: lavu/parseutils: make small_strptime() return a (non const) char * This is consistent with the standard definition of strptime(). --- libavutil/parseutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c index 588441136d..5e2644cb4f 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) { -- cgit v1.2.3