diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-18 18:35:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-18 18:35:56 +0200 |
commit | d1466d79487fdf04f99631d919f587c422c281a4 (patch) | |
tree | 41ffe0708049faff0d63bdcf6777188fee70b4d7 /include/slibc-alloc.h | |
parent | beginning of implementation of falloc (diff) | |
download | slibc-d1466d79487fdf04f99631d919f587c422c281a4.tar.gz slibc-d1466d79487fdf04f99631d919f587c422c281a4.tar.bz2 slibc-d1466d79487fdf04f99631d919f587c422c281a4.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/slibc-alloc.h')
-rw-r--r-- | include/slibc-alloc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/slibc-alloc.h b/include/slibc-alloc.h index d745dee..b0b2561 100644 --- a/include/slibc-alloc.h +++ b/include/slibc-alloc.h @@ -345,13 +345,13 @@ void* falloc(void*, size_t*, size_t, size_t, size_t, enum falloc_mode); * This macro calls `fast_free` and then sets the pointer to `NULL`, * so that another attempt to free the segment will not crash the process. */ -#define FAST_FREE(segment) (fast_free(segment), (segment) = NULL); +#define FAST_FREE(segment) (fast_free(segment), (void)((segment) = NULL)); /** * This macro calls `secure_free` and then sets the pointer to `NULL`, * so that another attempt to free the segment will not crash the process. */ -#define SECURE_FREE(segment) (secure_free(segment), (segment) = NULL); +#define SECURE_FREE(segment) (secure_free(segment), (void)((segment) = NULL)); |