]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount/hooks: make `hooksets` array const
authorMax Kellermann <max.kellermann@gmail.com>
Mon, 18 Nov 2024 11:18:06 +0000 (12:18 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Mon, 18 Nov 2024 11:20:56 +0000 (12:20 +0100)
The pointed-to structures were const, but the pointers were not.

libmount/src/hooks.c

index 85c7475d3770e1ddc6633a11ce591bafc041a4d5..6b9bd4bb25a011c1adeac0aced71935747dd2860 100644 (file)
@@ -30,7 +30,7 @@
 #include "mount-api-utils.h"
 
 /* built-in hooksets */
-static const struct libmnt_hookset *hooksets[] =
+static const struct libmnt_hookset *const hooksets[] =
 {
 #ifdef __linux__
        &hookset_loopdev,