From 2244239dc77a8d37f6fc4bb48625e14dc101e668 Mon Sep 17 00:00:00 2001 From: Marco Bodrato Date: Wed, 31 Jan 2018 04:30:38 +0100 Subject: printf/*.c: Use __GMP_FREE_FUNC_TYPE --- printf/doprnt.c | 4 ++-- printf/doprntf.c | 2 +- printf/repl-vsnprintf.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'printf') diff --git a/printf/doprnt.c b/printf/doprnt.c index 7f97a0964..fa3f3029f 100644 --- a/printf/doprnt.c +++ b/printf/doprnt.c @@ -339,7 +339,7 @@ __gmp_doprnt (const struct doprnt_funs_t *funs, void *data, va_arg (ap, mpz_srcptr)); gmp_integer: ret = __gmp_doprnt_integer (funs, data, ¶m, gmp_str); - (*__gmp_free_func) (gmp_str, strlen(gmp_str)+1); + __GMP_FREE_FUNC_TYPE (gmp_str, strlen(gmp_str)+1, char); DOPRNT_ACCUMULATE (ret); va_copy (last_ap, ap); last_fmt = fmt; @@ -617,7 +617,7 @@ __gmp_doprnt (const struct doprnt_funs_t *funs, void *data, goto error; done: - (*__gmp_free_func) (alloc_fmt, alloc_fmt_size); + __GMP_FREE_FUNC_TYPE (alloc_fmt, alloc_fmt_size, char); return retval; error: diff --git a/printf/doprntf.c b/printf/doprntf.c index b696219f2..2a7e0d234 100644 --- a/printf/doprntf.c +++ b/printf/doprntf.c @@ -380,7 +380,7 @@ __gmp_doprnt_mpf (const struct doprnt_funs_t *funs, DOPRNT_REPS (p->fill, justlen); done: - (*__gmp_free_func) (free_ptr, free_size); + __GMP_FREE_FUNC_TYPE (free_ptr, free_size, char); return retval; error: diff --git a/printf/repl-vsnprintf.c b/printf/repl-vsnprintf.c index 19d50c603..9ae22c14d 100644 --- a/printf/repl-vsnprintf.c +++ b/printf/repl-vsnprintf.c @@ -382,7 +382,7 @@ __gmp_replacement_vsnprintf (char *buf, size_t buf_size, memcpy (buf, s, copylen); buf[copylen] = '\0'; } - (*__gmp_free_func) (s, total_width); + __GMP_FREE_FUNC_TYPE (s, total_width, char); } /* If total_width was somehow wrong then chances are we've already -- cgit v1.2.1