summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2013-03-12 18:32:52 +0100
committerKay Sievers <kay@vrfy.org>2013-03-13 01:39:11 +0100
commita63c198cc0ac9113efca5450309b21011cadfe29 (patch)
treed1dd33cd445abe2029267d34246b5fcf3d57bde8 /src
parent5b176ee064d9737fd933dfeb660d015c19649794 (diff)
shutdown: move attribute packed to the end of the declaration, so it is not ignored
Diffstat (limited to 'src')
-rw-r--r--src/systemd/sd-shutdown.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemd/sd-shutdown.h b/src/systemd/sd-shutdown.h
index cee4350173..b8f6a487ec 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:
*