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 <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2024-08-22 12:47:31 +01:00 committed by Georges Basile Stavracas Neto
parent 0d61023710
commit f711ffc0e3

View File

@ -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)