projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: implicit conversion of enum types in consumer
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
consumer.c
diff --git
a/src/bin/lttng-sessiond/consumer.c
b/src/bin/lttng-sessiond/consumer.c
index 55a2af4f794fa9681cddf90e91ba3ce3ecdd03b0..18931a8b7b8d488ab437522889894049b5f8f20b 100644
(file)
--- a/
src/bin/lttng-sessiond/consumer.c
+++ b/
src/bin/lttng-sessiond/consumer.c
@@
-142,7
+142,7
@@
int consumer_recv_status_reply(struct consumer_socket *sock)
goto end;
}
goto end;
}
- if (reply.ret_code == LTT
NG_OK
) {
+ if (reply.ret_code == LTT
COMM_CONSUMERD_SUCCESS
) {
/* All good. */
ret = 0;
} else {
/* All good. */
ret = 0;
} else {
@@
-178,13
+178,14
@@
int consumer_recv_status_channel(struct consumer_socket *sock,
}
/* An error is possible so don't touch the key and stream_count. */
}
/* An error is possible so don't touch the key and stream_count. */
- if (reply.ret_code != LTT
NG_OK
) {
+ if (reply.ret_code != LTT
COMM_CONSUMERD_SUCCESS
) {
ret = -1;
goto end;
}
*key = reply.key;
*stream_count = reply.stream_count;
ret = -1;
goto end;
}
*key = reply.key;
*stream_count = reply.stream_count;
+ ret = 0;
end:
return ret;
end:
return ret;
This page took
0.022771 seconds
and
4
git commands to generate.