diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-14 23:14:09 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-14 23:14:09 +0000 |
commit | 8e48b931091cbc99abeffacc7af80f363495ec23 (patch) | |
tree | 8aec6c47ec54e425884f646b08a9e28b216b3ebe /test/filter.c | |
parent | a4e3ccd6abb97d05121635112bdca44fc0e440b0 (diff) | |
download | libparserutils-8e48b931091cbc99abeffacc7af80f363495ec23.tar.gz libparserutils-8e48b931091cbc99abeffacc7af80f363495ec23.tar.bz2 |
Remove client allocation function.
Diffstat (limited to 'test/filter.c')
-rw-r--r-- | test/filter.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/filter.c b/test/filter.c index a34ade3..25c94a9 100644 --- a/test/filter.c +++ b/test/filter.c @@ -11,13 +11,6 @@ #include "testutils.h" -static void *myrealloc(void *ptr, size_t len, void *pw) -{ - UNUSED(pw); - - return realloc(ptr, len); -} - int main(int argc, char **argv) { parserutils_filter_optparams params; @@ -31,8 +24,7 @@ int main(int argc, char **argv) UNUSED(argv); /* Create input filter */ - assert(parserutils__filter_create("UTF-8", myrealloc, NULL, &input) == - PARSERUTILS_OK); + assert(parserutils__filter_create("UTF-8", &input) == PARSERUTILS_OK); /* Convert filter to UTF-8 encoding */ params.encoding.name = "UTF-8"; |