summaryrefslogtreecommitdiffstats
path: root/src/luks.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-04-27 08:20:57 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-04-27 08:20:57 +0200
commit9ce850a9216800f685937a50034794a179f3a6cc (patch)
tree3e6568162e473aa486647e3bf85cb9a9f2235c85 /src/luks.c
parent65c9c5e300a9ac96782d4b5de13593e8748c980f (diff)
luks: code cleanup
Diffstat (limited to 'src/luks.c')
-rw-r--r--src/luks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luks.c b/src/luks.c
index a9a4659..827598b 100644
--- a/src/luks.c
+++ b/src/luks.c
@@ -38,7 +38,6 @@
static int test_LUKS(disk_t *disk_car, const struct luks_phdr *sb, partition_t *partition, const int dump_ind);
static int set_LUKS_info(const struct luks_phdr *sb, partition_t *partition);
-static const uint8_t LUKS_MAGIC[LUKS_MAGIC_L] = {'L','U','K','S', 0xba, 0xbe};
int check_LUKS(disk_t *disk_car,partition_t *partition)
{
@@ -90,7 +89,8 @@ int recover_LUKS(disk_t *disk_car, const struct luks_phdr *sb,partition_t *parti
static int test_LUKS(disk_t *disk_car, const struct luks_phdr *sb, partition_t *partition, const int dump_ind)
{
- if(memcmp(sb->magic,LUKS_MAGIC,LUKS_MAGIC_L)!=0)
+ static const uint8_t LUKS_MAGIC[LUKS_MAGIC_L] = {'L','U','K','S', 0xba, 0xbe};
+ if(memcmp(sb->magic, LUKS_MAGIC, LUKS_MAGIC_L)!=0)
return 1;
if(dump_ind!=0)
{