projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-tidy: add Chrome-inspired checks
[lttng-tools.git]
/
src
/
common
/
shm.cpp
diff --git
a/src/common/shm.cpp
b/src/common/shm.cpp
index 6284ed1fddcb1c609b868595717b05664bb58ae2..deaf715a651cd62ba156dbf2f173da0d5526fcec 100644
(file)
--- a/
src/common/shm.cpp
+++ b/
src/common/shm.cpp
@@
-187,8
+187,8
@@
char *shm_ust_get_mmap(char *shm_path, int global)
goto error;
}
goto error;
}
- wait_shm_mmap =
-
(char *) mmap(NULL
, mmap_size, PROT_WRITE | PROT_READ, MAP_SHARED, wait_shm_fd, 0);
+ wait_shm_mmap =
(char *) mmap(
+
nullptr
, mmap_size, PROT_WRITE | PROT_READ, MAP_SHARED, wait_shm_fd, 0);
/* close shm fd immediately after taking the mmap reference */
ret = close(wait_shm_fd);
/* close shm fd immediately after taking the mmap reference */
ret = close(wait_shm_fd);
@@
-207,7
+207,7
@@
char *shm_ust_get_mmap(char *shm_path, int global)
return wait_shm_mmap;
error:
return wait_shm_mmap;
error:
- return
NULL
;
+ return
nullptr
;
}
/*
}
/*
This page took
0.024626 seconds
and
4
git commands to generate.