summaryrefslogtreecommitdiffstats
path: root/tests/test-buffer.c
diff options
context:
space:
mode:
authorpaul <paul>2005-09-07 01:08:01 +0200
committerpaul <paul>2005-09-07 01:08:01 +0200
commitdff4f5272f7c3289b0c7eebe441cf7c223bcb044 (patch)
tree113b16e046e029b52220a4c7bc96eb8102af7612 /tests/test-buffer.c
parent2004-09-05 Paul Jakma <paul@dishone.st> (diff)
downloadfrr-dff4f5272f7c3289b0c7eebe441cf7c223bcb044.tar.xz
frr-dff4f5272f7c3289b0c7eebe441cf7c223bcb044.zip
2004-09-06 Paul Jakma <paul@dishone.st>
* test-buffer.c: include memory.h (main) call memory_init().
Diffstat (limited to '')
-rw-r--r--tests/test-buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-buffer.c b/tests/test-buffer.c
index 11e362948..b310776f8 100644
--- a/tests/test-buffer.c
+++ b/tests/test-buffer.c
@@ -1,4 +1,5 @@
#include <zebra.h>
+#include <memory.h>
#include <buffer.h>
struct thread_master *master;
@@ -11,6 +12,8 @@ main(int argc, char **argv)
char junk[3];
char c = 'a';
+ memory_init();
+
if ((argc != 2) || (sscanf(argv[1], "%d%1s", &n, junk) != 1))
{
fprintf(stderr, "Usage: %s <number of chars to simulate>\n", *argv);