#include <bin/lttng-sessiond/session.h>
#include <common/sessiond-comm/sessiond-comm.h>
+#include <common/common.h>
#include "utils.h"
int ret;
ret = session_create(name, path, geteuid(), getegid());
- if (ret == LTTCOMM_OK) {
+ if (ret == LTTNG_OK) {
/* Validate */
ret = find_session_name(name);
if (ret < 0) {
return 0;
}
} else {
- if (ret == LTTCOMM_EXIST_SESS) {
+ if (ret == LTTNG_ERR_EXIST_SESS) {
printf("(session already exists) ");
}
return -1;
ret = session_destroy(session);
- if (ret == LTTCOMM_OK) {
+ if (ret == LTTNG_OK) {
/* Validate */
if (session == NULL) {
return 0;