projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b176ee
)
shutdown: move attribute packed to the end of the declaration, so it is not ignored
author
Michal Sekletar
<msekleta@redhat.com>
Tue, 12 Mar 2013 17:32:52 +0000
(18:32 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Wed, 13 Mar 2013 00:39:11 +0000
(
01:39
+0100)
src/systemd/sd-shutdown.h
patch
|
blob
|
history
diff --git
a/src/systemd/sd-shutdown.h
b/src/systemd/sd-shutdown.h
index
cee4350
..
b8f6a48
100644
(file)
--- 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:
*