From: Lennart Poettering Date: Mon, 1 Jun 2020 16:50:33 +0000 (+0200) Subject: journal: make signature arrays const X-Git-Tag: v246-rc1~84^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7851ec66349c7a2074e9f06ebad45669127710e2;p=thirdparty%2Fsystemd.git journal: make signature arrays const --- diff --git a/src/journal/journal-def.h b/src/journal/journal-def.h index 3f981e4e399..54260c97b02 100644 --- a/src/journal/journal-def.h +++ b/src/journal/journal-def.h @@ -172,7 +172,8 @@ enum { # define HEADER_COMPATIBLE_SUPPORTED 0 #endif -#define HEADER_SIGNATURE ((char[]) { 'L', 'P', 'K', 'S', 'H', 'H', 'R', 'H' }) +#define HEADER_SIGNATURE \ + ((const char[]) { 'L', 'P', 'K', 'S', 'H', 'H', 'R', 'H' }) #define struct_Header__contents { \ uint8_t signature[8]; /* "LPKSHHRH" */ \ @@ -212,7 +213,8 @@ struct Header__packed struct_Header__contents _packed_; assert_cc(sizeof(struct Header) == sizeof(struct Header__packed)); assert_cc(sizeof(struct Header) == 240); -#define FSS_HEADER_SIGNATURE ((char[]) { 'K', 'S', 'H', 'H', 'R', 'H', 'L', 'P' }) +#define FSS_HEADER_SIGNATURE \ + ((const char[]) { 'K', 'S', 'H', 'H', 'R', 'H', 'L', 'P' }) struct FSSHeader { uint8_t signature[8]; /* "KSHHRHLP" */