chiark / gitweb /
Add __attribute__((const, pure, format)) in various places
[elogind.git] / src / shutdownd / shutdownd.c
index 4c9c149a2dcbeef314d35ae532fb3e9151aa7899..461a7261f43b675decbc99cbecf78f3722122d53 100644 (file)
@@ -150,7 +150,7 @@ static void warn_wall(usec_t n, struct sd_shutdown_command *c) {
         }
 }
 
-static usec_t when_wall(usec_t n, usec_t elapse) {
+_const_ static usec_t when_wall(usec_t n, usec_t elapse) {
 
         static const struct {
                 usec_t delay;