Port: Use LTTNG_HOST_NAME_MAX instead of HOST_NAME_MAX
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 14 Oct 2015 18:33:43 +0000 (14:33 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 19 Oct 2015 03:40:17 +0000 (23:40 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/lttng/constant.h
src/bin/lttng-relayd/main.c
src/bin/lttng-relayd/session.h
src/common/sessiond-comm/relayd.h

index edf4c3a8dd97d9b189aae0d4779418fe1f17dc09..d3bc8f4a594c2130fc32d87df17240daca0d9427 100644 (file)
@@ -56,4 +56,6 @@
 
 #define LTTNG_NAME_MAX                         255
 
+#define LTTNG_HOST_NAME_MAX                    64
+
 #endif /* LTTNG_CONSTANT_H */
index 28e52696e568760c898cf7c49a8a79068f5a3add..53ffbddf0ac8c71cc1129e3b5e233bdb6564a95f 100644 (file)
@@ -1069,12 +1069,12 @@ static int relay_create_session(struct lttcomm_relayd_hdr *recv_hdr,
        struct relay_session *session;
        struct lttcomm_relayd_status_session reply;
        char session_name[LTTNG_NAME_MAX];
-       char hostname[HOST_NAME_MAX];
+       char hostname[LTTNG_HOST_NAME_MAX];
        uint32_t live_timer = 0;
        bool snapshot = false;
 
        memset(session_name, 0, LTTNG_NAME_MAX);
-       memset(hostname, 0, HOST_NAME_MAX);
+       memset(hostname, 0, LTTNG_HOST_NAME_MAX);
 
        memset(&reply, 0, sizeof(reply));
 
index de1e44f0d7fd36410349a7c1f1ecbcac8bc3c76b..3ee1c45c3d24c93605605336fb7b5ac426e05afd 100644 (file)
@@ -40,7 +40,7 @@ struct relay_session {
         */
        uint64_t id;
        char session_name[LTTNG_NAME_MAX];
-       char hostname[HOST_NAME_MAX];
+       char hostname[LTTNG_HOST_NAME_MAX];
        uint32_t live_timer;
 
        /* Session in snapshot mode. */
index 1152d28e907676aa6e06ed046ae62c5e5da977df..fa45de16a3794bd5b0a96cb0f5b9711882fb088c 100644 (file)
@@ -169,7 +169,7 @@ struct lttcomm_relayd_index {
  */
 struct lttcomm_relayd_create_session_2_4 {
        char session_name[LTTNG_NAME_MAX];
-       char hostname[HOST_NAME_MAX];
+       char hostname[LTTNG_HOST_NAME_MAX];
        uint32_t live_timer;
        uint32_t snapshot;
 } LTTNG_PACKED;
This page took 0.030153 seconds and 4 git commands to generate.