projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardize `strcmp(a, b) == 0` instead of `!strcmp(a, b)`
[babeltrace.git]
/
src
/
plugins
/
ctf
/
lttng-live
/
viewer-connection.c
diff --git
a/src/plugins/ctf/lttng-live/viewer-connection.c
b/src/plugins/ctf/lttng-live/viewer-connection.c
index 01b4b82315f63b143e4dada262b04a2c38f42ccb..65433896ea3953e58f0151fa9aa047f2e5bec38d 100644
(file)
--- a/
src/plugins/ctf/lttng-live/viewer-connection.c
+++ b/
src/plugins/ctf/lttng-live/viewer-connection.c
@@
-347,9
+347,8
@@
int list_update_session(bt_value *results,
hostname_str = bt_value_string_get(hostname);
session_name_str = bt_value_string_get(session_name);
hostname_str = bt_value_string_get(hostname);
session_name_str = bt_value_string_get(session_name);
- if (!strcmp(session->hostname, hostname_str)
- && !strcmp(session->session_name,
- session_name_str)) {
+ if (strcmp(session->hostname, hostname_str) == 0
+ && strcmp(session->session_name, session_name_str) == 0) {
int64_t val;
uint32_t streams = be32toh(session->streams);
uint32_t clients = be32toh(session->clients);
int64_t val;
uint32_t streams = be32toh(session->streams);
uint32_t clients = be32toh(session->clients);
This page took
0.02334 seconds
and
4
git commands to generate.