summaryrefslogtreecommitdiff
path: root/test/cscodec-utf16.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/cscodec-utf16.c')
-rw-r--r--test/cscodec-utf16.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/cscodec-utf16.c b/test/cscodec-utf16.c
index f29e4d1..835c65e 100644
--- a/test/cscodec-utf16.c
+++ b/test/cscodec-utf16.c
@@ -33,13 +33,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;
@@ -51,9 +44,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-16", myrealloc, NULL,
+ assert(parserutils_charset_codec_create("UTF-16",
&ctx.codec) == PARSERUTILS_OK);
ctx.buflen = parse_filesize(argv[1]);