chiark / gitweb /
log: avoid calling the logging functions for log levels above the current maximum
[elogind.git] / src / systemd / sd-shutdown.h
index cee435017338d289ee94d1a6137919ad5707dcea..6698c8c5c420de29ae456c3b90948a1c40a1476d 100644 (file)
@@ -26,6 +26,8 @@
 
 #include <inttypes.h>
 
+#include "_sd-common.h"
+
 typedef enum sd_shutdown_mode {
         SD_SHUTDOWN_NONE = 0,
         SD_SHUTDOWN_REBOOT = 'r',
@@ -37,7 +39,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 +57,7 @@ __attribute__((packed)) struct sd_shutdown_command {
         /* The wall message to send around. Leave empty for the
          * default wall message */
         char wall_message[];
-};
+} _sd_packed_;
 
 /* The scheme is very simple:
  *