diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-08-01 14:07:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-08-01 14:07:00 +0200 |
commit | 7d898e638abad8267420f8c0d827d21f716b8977 (patch) | |
tree | 897a31950ba0a345f05162e4e8616f26e1b69446 /compat/shm.cpp | |
parent | b930dd608bf95ecc3f89007313ba8ab8b1935ee5 (diff) |
fix clang warnings
Diffstat (limited to 'compat/shm.cpp')
-rw-r--r-- | compat/shm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/shm.cpp b/compat/shm.cpp index 1f863190..f59469dc 100644 --- a/compat/shm.cpp +++ b/compat/shm.cpp @@ -106,7 +106,7 @@ shm_wrapper::shm_wrapper(const char *shm_name, const char* /*mutex_name*/, int m strcat(filename, shm_name); fd = shm_open(filename, O_RDWR | O_CREAT, 0600); (void) ftruncate(fd, map_size); - mem = mmap(NULL, map_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, (off_t)0); + mem = mmap(nullptr, map_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, (off_t)0); } shm_wrapper::~shm_wrapper() |