libreplace: Fix prototypes for all functions.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 18 Mar 2011 23:44:47 +0000 (00:44 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 19 Mar 2011 02:20:05 +0000 (03:20 +0100)
lib/replace/replace-test.h
lib/replace/test/getifaddrs.c
lib/replace/test/os2_delete.c
lib/replace/test/testsuite.c

index 95fb7abe1ce8eca97a41a85306c40d50940a7c12..a522853351ceb9a32cf0a0c7574a3ff64efc70f1 100644 (file)
@@ -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);
index 8b00ac2f40c5f20c5ad95cdf982f441670eaf021..d325d8bb1bbe3831272a029c79a8fb7584770652 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef AUTOCONF_TEST
 #include "replace.h"
 #include "system/network.h"
+#include "replace-test.h"
 #endif
 
 #ifdef HAVE_INET_NTOP
index 9d760bfdc2f30c5754ca5d076d879612525ee48d..a11ed3b370bfefddda6532bac837da861645fcf8 100644 (file)
@@ -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
index 0e455f23172e2533345e0f90492e88e33dd10e77..0c1fac67a0e54b3ab726f5c0cb43708d2af03cac 100644 (file)
@@ -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;