From f711ffc0e3c9b0119fec69961ae8a558670752df Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 22 Aug 2024 12:47:31 +0100 Subject: [PATCH] utils: Be more const-correct For historical reasons C string literals are officially of type `char *`, but if we build with -Wwrite-strings, they are `const char *` as they should be. Signed-off-by: Simon McVittie --- common/flatpak-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-utils.c b/common/flatpak-utils.c index 255c36ff..d482609c 100644 --- a/common/flatpak-utils.c +++ b/common/flatpak-utils.c @@ -304,7 +304,7 @@ static const char * flatpak_get_kernel_arch (void) { static struct utsname buf; - static char *arch = NULL; + static const char *arch = NULL; char *m; if (arch != NULL)