diff --git a/sys/sys/resource.h b/sys/sys/resource.h index 7d0b4ee..b89d603 100644 --- a/sys/sys/resource.h +++ b/sys/sys/resource.h @@ -96,7 +96,11 @@ struct rusage { #define RLIMIT_AS RLIMIT_VMEM /* standard name for RLIMIT_VMEM */ #define RLIMIT_NPTS 11 /* pseudo-terminals */ #define RLIMIT_SWAP 12 /* swap used */ - + /* + * When adding a new resource limit + * don't forget to add its string + * identifier to rlimit_ident below. + */ #define RLIM_NLIMITS 13 /* number of resource limits */ #define RLIM_INFINITY ((rlim_t)(((uint64_t)1 << 63) - 1)) @@ -108,7 +112,7 @@ struct rusage { */ #ifdef _RLIMIT_IDENT -static char *rlimit_ident[RLIM_NLIMITS] = { +static const char *rlimit_ident[RLIM_NLIMITS] = { "cpu", "fsize", "data",