diff --git a/ctdb/include/ctdb_protocol.h b/ctdb/include/ctdb_protocol.h index bec849e857c..3120103a48a 100644 --- a/ctdb/include/ctdb_protocol.h +++ b/ctdb/include/ctdb_protocol.h @@ -23,9 +23,6 @@ #include #include "protocol/protocol.h" -/* define ctdb port number */ -#define CTDB_PORT 4379 - /* we must align packets to ensure ctdb works on all architectures (eg. sparc) */ #define CTDB_DS_ALIGNMENT 8 diff --git a/ctdb/protocol/protocol.h b/ctdb/protocol/protocol.h index 99440b39125..c775c4bcc64 100644 --- a/ctdb/protocol/protocol.h +++ b/ctdb/protocol/protocol.h @@ -22,6 +22,8 @@ #include +#define CTDB_PORT 4379 + #define CTDB_MAGIC 0x43544442 /* CTDB */ #define CTDB_PROTOCOL 1 diff --git a/ctdb/tests/src/fake_ctdbd.c b/ctdb/tests/src/fake_ctdbd.c index f3af4bd43f9..522b5509cb0 100644 --- a/ctdb/tests/src/fake_ctdbd.c +++ b/ctdb/tests/src/fake_ctdbd.c @@ -48,8 +48,6 @@ #include "ipalloc_read_known_ips.h" -#define CTDB_PORT 4379 - /* A fake flag that is only supported by some functions */ #define NODE_FLAGS_FAKE_TIMEOUT 0x80000000