mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00: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:
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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user