summaryrefslogtreecommitdiff
path: root/test/cscodec-utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/cscodec-utf8.c')
-rw-r--r--test/cscodec-utf8.c11
1 files changed, 2 insertions, 9 deletions
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]);