chiark / gitweb /
journal: align byte-buffer that gets cased to an object
[elogind.git] / src / journal / sd-journal.c
index 57572d4f0113f988c8d88db5cf105501eb927c76..a2900fbee92433917776fd2c835f39aea1b99ad7 100644 (file)
@@ -1868,7 +1868,7 @@ static int determine_change(sd_journal *j) {
 }
 
 _public_ int sd_journal_process(sd_journal *j) {
 }
 
 _public_ int sd_journal_process(sd_journal *j) {
-        uint8_t buffer[sizeof(struct inotify_event) + FILENAME_MAX];
+        uint8_t buffer[sizeof(struct inotify_event) + FILENAME_MAX] _alignas_(struct inotify_event);
         bool got_something = false;
 
         if (!j)
         bool got_something = false;
 
         if (!j)