summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-09-05 23:28:52 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-09-06 00:40:01 +0200
commit79dcd58d839714e8e645fd4414ee4c3645bc419e (patch)
treeb758e025e3378efa867dea6588847151d9b9699a
parent5620088494acd2fc393aefaf6c6670d03f8056e7 (diff)
lavu/parseutils: make small_strptime() return a (non const) char *
This is consistent with the standard definition of strptime().
-rw-r--r--libavutil/parseutils.c4
1 files 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) {