mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-28 20:02:36 -04:00
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:
committed by
Georges Basile Stavracas Neto
parent
0d61023710
commit
f711ffc0e3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user