projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sessiond: main.cpp: iterate on list using list_iteration_adapter
[lttng-tools.git]
/
src
/
common
/
sessiond-comm
/
inet6.cpp
diff --git
a/src/common/sessiond-comm/inet6.cpp
b/src/common/sessiond-comm/inet6.cpp
index 21b8378e12e30b34f4c897d8ca2ad3df637b11c1..0d1b6f15ba02611024e61340f76f3027ae1d1011 100644
(file)
--- a/
src/common/sessiond-comm/inet6.cpp
+++ b/
src/common/sessiond-comm/inet6.cpp
@@
-97,7
+97,7
@@
static int connect_no_timeout(struct lttcomm_sock *sock)
static int connect_with_timeout(struct lttcomm_sock *sock)
{
static int connect_with_timeout(struct lttcomm_sock *sock)
{
- unsigned long timeout = lttcomm_get_network_timeout();
+
const
unsigned long timeout = lttcomm_get_network_timeout();
int ret, flags, connect_ret;
struct timespec orig_time, cur_time;
unsigned long diff_ms;
int ret, flags, connect_ret;
struct timespec orig_time, cur_time;
unsigned long diff_ms;
@@
-251,7
+251,7
@@
struct lttcomm_sock *lttcomm_accept_inet6_sock(struct lttcomm_sock *sock)
}
new_sock = lttcomm_alloc_sock(sock->proto);
}
new_sock = lttcomm_alloc_sock(sock->proto);
- if (new_sock ==
NULL
) {
+ if (new_sock ==
nullptr
) {
goto error;
}
goto error;
}
@@
-272,7
+272,7
@@
end:
error:
free(new_sock);
error:
free(new_sock);
- return
NULL
;
+ return
nullptr
;
}
/*
}
/*
This page took
0.022374 seconds
and
4
git commands to generate.