summaryrefslogtreecommitdiffstats
path: root/include/pt-sun.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pt-sun.h')
-rw-r--r--include/pt-sun.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pt-sun.h b/include/pt-sun.h
index b085268ca..e6a4ed13f 100644
--- a/include/pt-sun.h
+++ b/include/pt-sun.h
@@ -76,7 +76,7 @@ struct sun_disklabel {
#define SUN_FLAG_UNMNT 0x01 /* Unmountable partition*/
#define SUN_FLAG_RONLY 0x10 /* Read only */
-static inline uint16_t sun_pt_checksum(struct sun_disklabel *label)
+static inline uint16_t sun_pt_checksum(const struct sun_disklabel *label)
{
uint16_t *ptr = ((uint16_t *) (label + 1)) - 1;
uint16_t sum;