From 2fa153d5c6a7974a73b151266625c17641b8af77 Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Tue, 30 Aug 2022 11:00:13 -0400 Subject: [PATCH] Fix const-ness in file filters patch Signed-off-by: Robbie Harwood --- 0270-Make-debug-file-show-which-file-filters-get-run.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/0270-Make-debug-file-show-which-file-filters-get-run.patch b/0270-Make-debug-file-show-which-file-filters-get-run.patch index 12062a31..4ac32cb4 100644 --- a/0270-Make-debug-file-show-which-file-filters-get-run.patch +++ b/0270-Make-debug-file-show-which-file-filters-get-run.patch @@ -15,14 +15,14 @@ Signed-off-by: Peter Jones 1 file changed, 11 insertions(+) diff --git a/grub-core/kern/file.c b/grub-core/kern/file.c -index ed69fc0f0f..3f175630ea 100644 +index ed69fc0f0f..20a4c839aa 100644 --- a/grub-core/kern/file.c +++ b/grub-core/kern/file.c @@ -30,6 +30,14 @@ void (*EXPORT_VAR (grub_grubnet_fini)) (void); grub_file_filter_t grub_file_filters[GRUB_FILE_FILTER_MAX]; -+static char *filter_names[] = { ++static const char *filter_names[] = { + [GRUB_FILE_FILTER_VERIFY] = "GRUB_FILE_FILTER_VERIFY", + [GRUB_FILE_FILTER_GZIO] = "GRUB_FILE_FILTER_GZIO", + [GRUB_FILE_FILTER_XZIO] = "GRUB_FILE_FILTER_XZIO",