aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-18 18:35:56 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-18 18:35:56 +0200
commitd1466d79487fdf04f99631d919f587c422c281a4 (patch)
tree41ffe0708049faff0d63bdcf6777188fee70b4d7 /include
parentbeginning of implementation of falloc (diff)
downloadslibc-d1466d79487fdf04f99631d919f587c422c281a4.tar.gz
slibc-d1466d79487fdf04f99631d919f587c422c281a4.tar.bz2
slibc-d1466d79487fdf04f99631d919f587c422c281a4.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--include/slibc-alloc.h4
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));