From 8e48b931091cbc99abeffacc7af80f363495ec23 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 14 Dec 2013 23:14:09 +0000 Subject: Remove client allocation function. --- test/cscodec-utf8.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'test/cscodec-utf8.c') diff --git a/test/cscodec-utf8.c b/test/cscodec-utf8.c index 6b1d4de..daf8035 100644 --- a/test/cscodec-utf8.c +++ b/test/cscodec-utf8.c @@ -28,13 +28,6 @@ typedef struct line_ctx { static bool handle_line(const char *data, size_t datalen, void *pw); static void run_test(line_ctx *ctx); -static void *myrealloc(void *ptr, size_t len, void *pw) -{ - UNUSED(pw); - - return realloc(ptr, len); -} - int main(int argc, char **argv) { parserutils_charset_codec *codec; @@ -46,9 +39,9 @@ int main(int argc, char **argv) } assert(parserutils_charset_codec_create("NATS-SEFI-ADD", - myrealloc, NULL, &codec) == PARSERUTILS_BADENCODING); + &codec) == PARSERUTILS_BADENCODING); - assert(parserutils_charset_codec_create("UTF-8", myrealloc, NULL, + assert(parserutils_charset_codec_create("UTF-8", &ctx.codec) == PARSERUTILS_OK); ctx.buflen = parse_filesize(argv[1]); -- cgit v1.2.3