diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2011-03-19 00:44:47 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-03-19 03:20:05 +0100 |
commit | f70a658b8273a5e06a11e2184a4e420fdbcd5744 (patch) | |
tree | 5189c42a3381b9efe7bed83a67df5beb03a5ec66 | |
parent | 42eb3ab54d2935a27fd883ca16c0dd9aacd71d92 (diff) | |
download | samba-f70a658b8273a5e06a11e2184a4e420fdbcd5744.tar.gz samba-f70a658b8273a5e06a11e2184a4e420fdbcd5744.tar.bz2 samba-f70a658b8273a5e06a11e2184a4e420fdbcd5744.zip |
libreplace: Fix prototypes for all functions.
-rw-r--r-- | lib/replace/replace-test.h | 3 | ||||
-rw-r--r-- | lib/replace/test/getifaddrs.c | 1 | ||||
-rw-r--r-- | lib/replace/test/os2_delete.c | 1 | ||||
-rw-r--r-- | lib/replace/test/testsuite.c | 4 |
4 files changed, 8 insertions, 1 deletions
diff --git a/lib/replace/replace-test.h b/lib/replace/replace-test.h index 95fb7abe1c..a522853351 100644 --- a/lib/replace/replace-test.h +++ b/lib/replace/replace-test.h @@ -1,6 +1,9 @@ #ifndef __LIB_REPLACE_REPLACE_TEST_H__ #define __LIB_REPLACE_REPLACE_TEST_H__ +#include <stdbool.h> +struct torture_context; + bool torture_local_replace(struct torture_context *ctx); int libreplace_test_strptime(void); int test_readdir_os2_delete(void); 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; |