chiark / gitweb /
Add __attribute__((const, pure, format)) in various places
[elogind.git] / src / systemctl / systemctl.c
index 6067781cf19599fafb28e076b7f87aa2dfa927b6..f9a03cad0d87c5e2350efa105cc442ecca339c87 100644 (file)
@@ -5414,7 +5414,7 @@ static int parse_argv(int argc, char *argv[]) {
         return systemctl_parse_argv(argc, argv);
 }
 
-static int action_to_runlevel(void) {
+_pure_ static int action_to_runlevel(void) {
 
         static const char table[_ACTION_MAX] = {
                 [ACTION_HALT] =      '0',