X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsystemd%2Fsd-shutdown.h;h=b8f6a487ecdb391a8a5d7318e3cd6433b311d2e2;hp=cee435017338d289ee94d1a6137919ad5707dcea;hb=68313d3dfa2082dae8a06643d639e0200afc19fc;hpb=5430f7f2bc7330f3088b894166bf3524a067e3d8 diff --git a/src/systemd/sd-shutdown.h b/src/systemd/sd-shutdown.h index cee435017..b8f6a487e 100644 --- a/src/systemd/sd-shutdown.h +++ b/src/systemd/sd-shutdown.h @@ -37,7 +37,7 @@ typedef enum sd_shutdown_mode { /* Calculate the size of the message as "offsetof(struct * sd_shutdown_command, wall_message) + * strlen(command.wall_message)" */ -__attribute__((packed)) struct sd_shutdown_command { +struct sd_shutdown_command { /* Microseconds after the epoch 1970 UTC */ uint64_t usec; @@ -55,7 +55,7 @@ __attribute__((packed)) struct sd_shutdown_command { /* The wall message to send around. Leave empty for the * default wall message */ char wall_message[]; -}; +} __attribute__((packed)); /* The scheme is very simple: *