X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Flttng-ust-comm.c;h=5aaf29e972559f485b0bee0484ad4fa5c76148a2;hb=1ece976622e22482aaf9eb13f8f68b8698c34332;hp=e28c39c6f8d930c0e32b32f2b03301ad6d93b95d;hpb=e77234624408c3d201a901121845fa5c4b93179e;p=lttng-ust.git diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index e28c39c6..5aaf29e9 100644 --- a/libust/lttng-ust-comm.c +++ b/libust/lttng-ust-comm.c @@ -75,13 +75,13 @@ int handle_message(int sock, struct lttcomm_ust_msg *lum) int ret; switch (lum->cmd_type) { - case LTTNG_CREATE_SESSION: + case LTTNG_UST_CREATE_SESSION: { struct lttcomm_ust_reply lur; DBG("Handling create session message"); memset(&lur, 0, sizeof(lur)); - lur.cmd_type = LTTNG_CREATE_SESSION; + lur.cmd_type = LTTNG_UST_CREATE_SESSION; /* ... */ ret = 0; @@ -90,7 +90,7 @@ int handle_message(int sock, struct lttcomm_ust_msg *lum) lur.ret_code = LTTCOMM_OK; else lur.ret_code = LTTCOMM_SESSION_FAIL; - lur.u.session.handle = 42; + lur.ret_val = 42; len = lttcomm_send_unix_sock(sock, &lur, sizeof(lur)); switch (len) { case sizeof(lur):