diff options
| author | Max Kellermann <max.kellermann@gmail.com> | 2024-11-18 12:18:06 +0100 |
|---|---|---|
| committer | Max Kellermann <max.kellermann@gmail.com> | 2024-11-18 12:20:56 +0100 |
| commit | 7c5fca67f94f493d18ae9e1fbc6540978cde5173 (patch) | |
| tree | 736f16881adf8dec0922e2f1c86c30b6d0951da5 /libmount/src/hooks.c | |
| parent | 4c4b248c68149089c8be2f830214bb2be693307e (diff) | |
| download | util-linux-7c5fca67f94f493d18ae9e1fbc6540978cde5173.tar.gz | |
libmount/hooks: make `hooksets` array const
The pointed-to structures were const, but the pointers were not.
Diffstat (limited to 'libmount/src/hooks.c')
| -rw-r--r-- | libmount/src/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/hooks.c b/libmount/src/hooks.c index 85c7475d37..6b9bd4bb25 100644 --- a/libmount/src/hooks.c +++ b/libmount/src/hooks.c @@ -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, |
