mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavu/parseutils: make small_strptime() return a (non const) char *
This is consistent with the standard definition of strptime().
This commit is contained in:
parent
5620088494
commit
79dcd58d83
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user