r, "Failed to set file attributes on a temporary file for '%s', ignoring: %m", path);
struct FSSHeader h = {
- .signature = { 'K', 'S', 'H', 'H', 'R', 'H', 'L', 'P' },
+ .signature = FSS_HEADER_SIGNATURE,
.machine_id = machine,
.boot_id = boot,
.header_size = htole64(sizeof(h)),
if (header == MAP_FAILED)
return -errno;
- if (memcmp(header->signature, FSS_HEADER_SIGNATURE, 8) != 0)
+ if (memcmp(header->signature, (const uint8_t[]) FSS_HEADER_SIGNATURE, 8) != 0)
return -EBADMSG;
if (header->incompatible_flags != 0)
assert_cc(sizeof(struct Header) == 272);
#define FSS_HEADER_SIGNATURE \
- ((const char[]) { 'K', 'S', 'H', 'H', 'R', 'H', 'L', 'P' })
+ { 'K', 'S', 'H', 'H', 'R', 'H', 'L', 'P' }
struct FSSHeader {
uint8_t signature[8]; /* "KSHHRHLP" */