ctdb-tools: Use replace headers instead of system headers
authorAmitay Isaacs <amitay@gmail.com>
Wed, 28 Oct 2015 08:52:02 +0000 (19:52 +1100)
committerMartin Schwenke <martins@samba.org>
Tue, 3 Nov 2015 23:47:16 +0000 (00:47 +0100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tools/ltdbtool.c

index 13fd7f98d7d5d445a4b9f7f520e66fccb6fd9f4e..7ac70e2fe47a9978e86ba9ef6f666ac37f76d2f8 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <stdio.h>
-#include <stdbool.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <ctype.h> /* isprint */
-#include <string.h> /* strstr */
-#include <fcntl.h> /* mode_t */
-#include <sys/stat.h> /* S_IRUSR */
-#include <stdint.h> /* uint32_t */
-#include <netinet/in.h> /* struct sockaddr_in */
-#include <sys/socket.h> /* struct sockaddr */
-#include <sys/param.h>  /* MIN */
+#include "replace.h"
+#include "system/filesys.h"
+#include "system/network.h"
+#include "system/locale.h"
+
 #include <tdb.h>
-#include <unistd.h> /* getopt */
-#include <errno.h>
 
-#include "ctdb_protocol.h"
+#include "protocol/protocol.h"
 
 enum {
        MAX_HEADER_SIZE=24,