projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git]
/
src
/
compat
/
mman.c
diff --git
a/src/compat/mman.c
b/src/compat/mman.c
index 72c4cc285aabd22b0f855a50950d66067bbb30fc..1a7638c98381e0d6511a3a78f597e43015d90df7 100644
(file)
--- a/
src/compat/mman.c
+++ b/
src/compat/mman.c
@@
-75,7
+75,7
@@
struct mmap_mapping *mapping_create(int log_level)
struct mmap_mapping *mapping;
mapping = malloc(sizeof(struct mmap_mapping));
struct mmap_mapping *mapping;
mapping = malloc(sizeof(struct mmap_mapping));
- if (mapping
!= NULL
) {
+ if (mapping) {
mapping->file_handle = NULL;
mapping->map_handle = NULL;
mapping->log_level = log_level;
mapping->file_handle = NULL;
mapping->map_handle = NULL;
mapping->log_level = log_level;
@@
-283,7
+283,7
@@
int bt_munmap(void *addr, size_t length)
mmap_lock(log_level);
/* Check if the mapping exists in the hashtable. */
mmap_lock(log_level);
/* Check if the mapping exists in the hashtable. */
- if (
g_hash_table_lookup(mmap_mappings, addr) == NULL
) {
+ if (
!g_hash_table_lookup(mmap_mappings, addr)
) {
_set_errno(EINVAL);
ret = -1;
goto end;
_set_errno(EINVAL);
ret = -1;
goto end;
This page took
0.033993 seconds
and
4
git commands to generate.