chiark / gitweb /
fix off by one error in array index assertion
[elogind.git] / src / core / manager.h
index 3192b63dfde10762025ff00c8d6530d22e80e5dd..e014abd04f6e6544ee08bd8a365668f1243f6ab1 100644 (file)
@@ -58,6 +58,7 @@ typedef enum ManagerExitCode {
 #include "execute.h"
 #include "unit-name.h"
 #include "exit-status.h"
+#include "show-status.h"
 
 struct Manager {
         /* Note that the set of units we know of is allowed to be
@@ -227,7 +228,7 @@ struct Manager {
         bool default_memory_accounting;
         bool default_blockio_accounting;
 
-        struct rlimit *rlimit[RLIMIT_NLIMITS];
+        struct rlimit *rlimit[_RLIMIT_MAX];
 
         /* non-zero if we are reloading or reexecuting, */
         int n_reloading;