summaryrefslogtreecommitdiff
path: root/lib/replace/test
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-03-19 00:44:47 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-03-19 03:20:05 +0100
commitf70a658b8273a5e06a11e2184a4e420fdbcd5744 (patch)
tree5189c42a3381b9efe7bed83a67df5beb03a5ec66 /lib/replace/test
parent42eb3ab54d2935a27fd883ca16c0dd9aacd71d92 (diff)
downloadsamba-f70a658b8273a5e06a11e2184a4e420fdbcd5744.tar.gz
samba-f70a658b8273a5e06a11e2184a4e420fdbcd5744.tar.bz2
samba-f70a658b8273a5e06a11e2184a4e420fdbcd5744.zip
libreplace: Fix prototypes for all functions.
Diffstat (limited to 'lib/replace/test')
-rw-r--r--lib/replace/test/getifaddrs.c1
-rw-r--r--lib/replace/test/os2_delete.c1
-rw-r--r--lib/replace/test/testsuite.c4
3 files changed, 5 insertions, 1 deletions
diff --git a/lib/replace/test/getifaddrs.c b/lib/replace/test/getifaddrs.c
index 8b00ac2f40..d325d8bb1b 100644
--- a/lib/replace/test/getifaddrs.c
+++ b/lib/replace/test/getifaddrs.c
@@ -22,6 +22,7 @@
#ifndef AUTOCONF_TEST
#include "replace.h"
#include "system/network.h"
+#include "replace-test.h"
#endif
#ifdef HAVE_INET_NTOP
diff --git a/lib/replace/test/os2_delete.c b/lib/replace/test/os2_delete.c
index 9d760bfdc2..a11ed3b370 100644
--- a/lib/replace/test/os2_delete.c
+++ b/lib/replace/test/os2_delete.c
@@ -12,6 +12,7 @@
#include <errno.h>
#include <string.h>
#include <fcntl.h>
+#include "replace-test.h"
#define NUM_FILES 700
#define READDIR_SIZE 100
diff --git a/lib/replace/test/testsuite.c b/lib/replace/test/testsuite.c
index 0e455f2317..0c1fac67a0 100644
--- a/lib/replace/test/testsuite.c
+++ b/lib/replace/test/testsuite.c
@@ -48,6 +48,9 @@
#define TESTFILE "testfile.dat"
+struct torture_context;
+bool torture_local_replace(struct torture_context *ctx);
+
/*
test ftruncate() function
*/
@@ -1052,7 +1055,6 @@ static int test_memmem(void)
}
-struct torture_context;
bool torture_local_replace(struct torture_context *ctx)
{
bool ret = true;