Skip to content

Commit

Permalink
sdjournal: drop conditional static specifier
Browse files Browse the repository at this point in the history
`_SD_ARRAY_STATIC` is a custom / conditional macro for static C99
array size, which got introduced in recent libsystemd and thus cannot
build on older versions.
Due to how it is currently used in our Go wrapper, it can be safely
omitted from here.

Ref: systemd/systemd@4199f68
  • Loading branch information
lucab committed Mar 12, 2021
1 parent a3292d2 commit cb9eb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdjournal/journal.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ package sdjournal
// }
//
// char *
// my_sd_id128_to_string(void *f, sd_id128_t boot_id, char s[_SD_ARRAY_STATIC SD_ID128_STRING_MAX])
// my_sd_id128_to_string(void *f, sd_id128_t boot_id, char s[SD_ID128_STRING_MAX])
// {
// char *(*sd_id128_to_string)(sd_id128_t, char *);
//
Expand Down

0 comments on commit cb9eb60

Please sign in to comment.