summaryrefslogtreecommitdiffstats
path: root/hivex/hivex.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-01-28 17:39:06 +0000
committerRichard Jones <rjones@redhat.com>2010-01-28 17:39:40 +0000
commit9a7640218c8c13d2924686d96457cfe0d3f91b1c (patch)
tree74ac9036974d1c1f35dd09eec3cc0899699435a0 /hivex/hivex.c
parentf8753ae9f7c460b7d087820201c0619fe2130cdd (diff)
downloadlibguestfs-9a7640218c8c13d2924686d96457cfe0d3f91b1c.tar.gz
libguestfs-9a7640218c8c13d2924686d96457cfe0d3f91b1c.tar.xz
libguestfs-9a7640218c8c13d2924686d96457cfe0d3f91b1c.zip
hivex: Const-correctness fix on header_checksum (thanks Jim Meyering).
Diffstat (limited to 'hivex/hivex.c')
-rw-r--r--hivex/hivex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hivex/hivex.c b/hivex/hivex.c
index 40babe82..d2c450fe 100644
--- a/hivex/hivex.c
+++ b/hivex/hivex.c
@@ -263,7 +263,7 @@ struct ntreg_vk_record {
} __attribute__((__packed__));
static uint32_t
-header_checksum (hive_h *h)
+header_checksum (const hive_h *h)
{
uint32_t *daddr = (uint32_t *) h->addr;
size_t i;