Major changes of command processing for sessiond
[lttng-tools.git] / ltt-sessiond / session.c
index 93f03e4c5ef11386d7fc5fdf36288993d246b078..069213655323a978eb0c355f482782be2e0f2fe6 100644 (file)
@@ -224,7 +224,7 @@ error_mem:
  *  Iterate over the global session list and
  *  fill the lttng_session array.
  */
-void get_lttng_session(struct lttng_session *lt)
+void get_lttng_session(struct lttng_session *sessions)
 {
        int i = 0;
        struct ltt_session *iter;
@@ -240,7 +240,7 @@ void get_lttng_session(struct lttng_session *lt)
                uuid_copy(lsess.uuid, iter->uuid);
                strncpy(lsess.name, iter->name, sizeof(lsess.name));
                lsess.name[sizeof(lsess.name) - 1] = '\0';
-               memcpy(&lt[i], &lsess, sizeof(lsess));
+               memcpy(&sessions[i], &lsess, sizeof(lsess));
                i++;
                /* Reset struct for next pass */
                memset(&lsess, 0, sizeof(lsess));
This page took 0.023004 seconds and 4 git commands to generate.