projects
/
platform
/
upstream
/
cryptsetup.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix two mem leaks in crypt_init_by_name_and_header().
[platform/upstream/cryptsetup.git]
/
lib
/
internal.h
diff --git
a/lib/internal.h
b/lib/internal.h
index
e20fe57
..
d574911
100644
(file)
--- a/
lib/internal.h
+++ b/
lib/internal.h
@@
-15,6
+15,9
@@
#include "utils_loop.h"
#include "utils_dm.h"
+/* to silent gcc -Wcast-qual for const cast */
+#define CONST_CAST(x) (x)(uintptr_t)
+
#define SECTOR_SHIFT 9
#define SECTOR_SIZE (1 << SECTOR_SHIFT)
#define DEFAULT_DISK_ALIGNMENT 1048576 /* 1MiB */