diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2018-01-31 04:30:38 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2018-01-31 04:30:38 +0100 |
commit | 2244239dc77a8d37f6fc4bb48625e14dc101e668 (patch) | |
tree | 7478333e47f7c203b39c04be24490817cab5ef47 /printf | |
parent | 20db0a9ce222e10fe7a1f096e00ea8fb8de1c5ee (diff) | |
download | gmp-2244239dc77a8d37f6fc4bb48625e14dc101e668.tar.gz |
printf/*.c: Use __GMP_FREE_FUNC_TYPE
Diffstat (limited to 'printf')
-rw-r--r-- | printf/doprnt.c | 4 | ||||
-rw-r--r-- | printf/doprntf.c | 2 | ||||
-rw-r--r-- | printf/repl-vsnprintf.c | 2 |
3 files changed, 4 insertions, 4 deletions
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 |