projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix error.h non-static variables for liblttng-ctl
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
session.c
diff --git
a/src/bin/lttng-sessiond/session.c
b/src/bin/lttng-sessiond/session.c
index ba2cefaaeff64f8e4ae53150b794e5d43f085561..e7fc7c35ade4ee4fa32bd778b8a2e927583957aa 100644
(file)
--- a/
src/bin/lttng-sessiond/session.c
+++ b/
src/bin/lttng-sessiond/session.c
@@
-25,9
+25,8
@@
#include <sys/types.h>
#include <urcu.h>
#include <sys/types.h>
#include <urcu.h>
-#include <common/sessiond-comm/sessiond-comm.h>
-#include <common/lttngerr.h>
#include <common/common.h>
#include <common/common.h>
+#include <common/sessiond-comm/sessiond-comm.h>
#include "session.h"
#include "session.h"
@@
-178,7
+177,7
@@
int session_create(char *name, char *path, uid_t uid, gid_t gid)
/* Allocate session data structure */
new_session = zmalloc(sizeof(struct ltt_session));
if (new_session == NULL) {
/* Allocate session data structure */
new_session = zmalloc(sizeof(struct ltt_session));
if (new_session == NULL) {
-
perror
("zmalloc");
+
PERROR
("zmalloc");
ret = LTTCOMM_FATAL;
goto error_malloc;
}
ret = LTTCOMM_FATAL;
goto error_malloc;
}
@@
-222,7
+221,7
@@
int session_create(char *name, char *path, uid_t uid, gid_t gid)
if (ret < 0) {
if (ret != -EEXIST) {
ERR("Trace directory creation error");
if (ret < 0) {
if (ret != -EEXIST) {
ERR("Trace directory creation error");
- ret = LTTCOMM_CREATE_FAIL;
+ ret = LTTCOMM_CREATE_
DIR_
FAIL;
goto error;
}
}
goto error;
}
}
This page took
0.026149 seconds
and
4
git commands to generate.