Skip to content
Permalink
Browse files

Remove freep warnings (#1182)

  • Loading branch information
NilsIrl authored and cfsmp3 committed Jan 14, 2020
1 parent 863eacc commit 96de55429d0005ec62c76c6190d0ca35a42af694
Showing with 6 additions and 5 deletions.
  1. +5 −4 src/lib_ccx/ccx_common_common.c
  2. +1 −1 src/lib_ccx/ccx_common_common.h
@@ -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;
}
}

@@ -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,

0 comments on commit 96de554

Please sign in to comment.
You can’t perform that action at this time.