projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
format-cpp: run clang-format in parallel
[lttng-tools.git]
/
src
/
common
/
unix.cpp
diff --git
a/src/common/unix.cpp
b/src/common/unix.cpp
index 1aea70d9f194cbb78d16a2b6058cb1e385bf6051..11ab18a98567cddcf6ca2cb3513f61009150e6cf 100644
(file)
--- a/
src/common/unix.cpp
+++ b/
src/common/unix.cpp
@@
-472,7
+472,7
@@
_lttcomm_send_payload_view_fds_unix_sock(int sock, struct lttng_payload_view *vi
struct lttng_dynamic_array raw_fds;
const int fd_count = lttng_payload_view_get_fd_handle_count(view);
struct lttng_dynamic_array raw_fds;
const int fd_count = lttng_payload_view_get_fd_handle_count(view);
- lttng_dynamic_array_init(&raw_fds, sizeof(int),
NULL
);
+ lttng_dynamic_array_init(&raw_fds, sizeof(int),
nullptr
);
if (fd_count < 0) {
ret = -LTTNG_ERR_INVALID;
if (fd_count < 0) {
ret = -LTTNG_ERR_INVALID;
@@
-685,7
+685,7
@@
retry:
* need to expect a cmsg of the SCM_CREDENTIALS as the first control
* message.
*/
* need to expect a cmsg of the SCM_CREDENTIALS as the first control
* message.
*/
- for (cmsg = CMSG_FIRSTHDR(&msg); cmsg !=
NULL
; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
+ for (cmsg = CMSG_FIRSTHDR(&msg); cmsg !=
nullptr
; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
if (cmsg->cmsg_level != SOL_SOCKET) {
fprintf(stderr, "Error: The socket needs to be of type SOL_SOCKET\n");
ret = -1;
if (cmsg->cmsg_level != SOL_SOCKET) {
fprintf(stderr, "Error: The socket needs to be of type SOL_SOCKET\n");
ret = -1;
@@
-932,7
+932,7
@@
retry:
* need to expect a cmsg of the SCM_CREDENTIALS as the first control
* message.
*/
* need to expect a cmsg of the SCM_CREDENTIALS as the first control
* message.
*/
- for (cmsg = CMSG_FIRSTHDR(&msg); cmsg !=
NULL
; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
+ for (cmsg = CMSG_FIRSTHDR(&msg); cmsg !=
nullptr
; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
if (cmsg->cmsg_level != SOL_SOCKET) {
fprintf(stderr, "Error: The socket needs to be of type SOL_SOCKET\n");
ret = -1;
if (cmsg->cmsg_level != SOL_SOCKET) {
fprintf(stderr, "Error: The socket needs to be of type SOL_SOCKET\n");
ret = -1;
@@
-1095,7
+1095,7
@@
ssize_t lttcomm_recv_creds_unix_sock(int sock, void *buf, size_t len, lttng_sock
}
cmptr = CMSG_FIRSTHDR(&msg);
}
cmptr = CMSG_FIRSTHDR(&msg);
- if (cmptr ==
NULL
) {
+ if (cmptr ==
nullptr
) {
fprintf(stderr, "Error: Invalid control message header\n");
ret = -1;
goto end;
fprintf(stderr, "Error: Invalid control message header\n");
ret = -1;
goto end;
This page took
0.027487 seconds
and
4
git commands to generate.