summaryrefslogtreecommitdiff
path: root/test/regression/stream-nomem.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-12-14 23:14:09 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2013-12-14 23:14:09 (GMT)
commit8e48b931091cbc99abeffacc7af80f363495ec23 (patch)
tree8aec6c47ec54e425884f646b08a9e28b216b3ebe /test/regression/stream-nomem.c
parenta4e3ccd6abb97d05121635112bdca44fc0e440b0 (diff)
downloadlibparserutils-8e48b931091cbc99abeffacc7af80f363495ec23.tar.gz
libparserutils-8e48b931091cbc99abeffacc7af80f363495ec23.tar.bz2
Remove client allocation function.
Diffstat (limited to 'test/regression/stream-nomem.c')
-rw-r--r--test/regression/stream-nomem.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/regression/stream-nomem.c b/test/regression/stream-nomem.c
index 4545bea..32aee2b 100644
--- a/test/regression/stream-nomem.c
+++ b/test/regression/stream-nomem.c
@@ -8,13 +8,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_inputstream *stream;
@@ -48,7 +41,7 @@ int main(int argc, char **argv)
input_buffer[BUFFER_SIZE - 8] = '1';
assert(parserutils_inputstream_create("UTF-8", 0,
- NULL, myrealloc, NULL, &stream) == PARSERUTILS_OK);
+ NULL, &stream) == PARSERUTILS_OK);
assert(parserutils_inputstream_append(stream,
input_buffer, BUFFER_SIZE) == PARSERUTILS_OK);