Cleanup: sessiond_id is never used by relayd_create_session_2_*
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 13 Mar 2018 21:37:10 +0000 (17:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 31 May 2018 09:57:08 +0000 (05:57 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/relayd/relayd.c

index 995e4880197550575667d6e18ca613645b1916b5..b4fd35c738af0e24b1a056e2b1545a5653dae239 100644 (file)
@@ -123,8 +123,8 @@ error:
  * support the live reading capability.
  */
 static int relayd_create_session_2_4(struct lttcomm_relayd_sock *rsock,
-               uint64_t *session_id, char *session_name, char *hostname,
-               int session_live_timer, unsigned int snapshot)
+               char *session_name, char *hostname, int session_live_timer,
+               unsigned int snapshot)
 {
        int ret;
        struct lttcomm_relayd_create_session_2_4 msg;
@@ -154,8 +154,7 @@ error:
 /*
  * RELAYD_CREATE_SESSION from 2.1 to 2.3.
  */
-static int relayd_create_session_2_1(struct lttcomm_relayd_sock *rsock,
-               uint64_t *session_id)
+static int relayd_create_session_2_1(struct lttcomm_relayd_sock *rsock)
 {
        int ret;
 
@@ -192,11 +191,11 @@ int relayd_create_session(struct lttcomm_relayd_sock *rsock, uint64_t *session_i
                case 1:
                case 2:
                case 3:
-                       ret = relayd_create_session_2_1(rsock, session_id);
+                       ret = relayd_create_session_2_1(rsock);
                        break;
                case 4:
                default:
-                       ret = relayd_create_session_2_4(rsock, session_id, session_name,
+                       ret = relayd_create_session_2_4(rsock, session_name,
                                        hostname, session_live_timer, snapshot);
                        break;
        }
This page took 0.03395 seconds and 4 git commands to generate.