From 9deac7786c2eebbb7bdb805a544e7f7f0f3f86d3 Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Mon, 29 Aug 2016 16:48:20 +0200 Subject: Use __GMP_ALLOCATE_FUNC_TYPE and friends. --- scanf/vsscanf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scanf') diff --git a/scanf/vsscanf.c b/scanf/vsscanf.c index 6fb043dce..a5c1cb4e8 100644 --- a/scanf/vsscanf.c +++ b/scanf/vsscanf.c @@ -48,7 +48,7 @@ gmp_vsscanf (const char *s, const char *fmt, va_list ap) char *alloc; int ret; size = strlen (s) + 1; - alloc = (char *) (*__gmp_allocate_func) (size); + alloc = __GMP_ALLOCATE_FUNC_TYPE (size, char); memcpy (alloc, s, size); s = alloc; ret = __gmp_doscan (&__gmp_sscanf_funs, (void *) &s, fmt, ap); -- cgit v1.2.1