Remove freep warnings (#1182)

This commit is contained in:
Nils ANDRÉ-CHANG 2020-01-14 19:22:31 +00:00 committed by Carlos Fernandez Sanz
parent 863eacc440
commit 96de55429d
2 changed files with 6 additions and 5 deletions

View File

@ -59,12 +59,13 @@ void millis_to_time(LLONG milli, unsigned *hours, unsigned *minutes,
}
/* Frees the given pointer */
void freep(void **arg)
void freep(void *arg)
{
if (arg)
void **ptr = arg;
if (*ptr)
{
free(*arg);
*arg = NULL;
free(*ptr);
*ptr = NULL;
}
}

View File

@ -42,7 +42,7 @@
// Declarations
void fdprintf(int fd, const char *fmt, ...);
void millis_to_time(LLONG milli, unsigned *hours, unsigned *minutes,unsigned *seconds, unsigned *ms);
void freep(void **arg);
void freep(void *arg);
void dbg_print(LLONG mask, const char *fmt, ...);
unsigned char *debug_608_to_ASC(unsigned char *ccdata, int channel);
int add_cc_sub_text(struct cc_subtitle *sub, char *str, LLONG start_time,