summaryrefslogtreecommitdiff
path: root/src/basic/rlimit-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-05-03 19:05:59 +0200
committerLennart Poettering <lennart@poettering.net>2018-05-17 20:36:52 +0200
commit31ce987c2b2953d3167a2aad146fd0690f63e07c (patch)
tree7680bdf9cdb1d8325b12d01086b6c47a943b219f /src/basic/rlimit-util.h
parent4f424df760117caa461252b89e9c6680eaee2568 (diff)
downloadsystemd-31ce987c2b2953d3167a2aad146fd0690f63e07c.tar.gz
rlimit-util: add a common destructor call for arrays of struct rlimit
Diffstat (limited to 'src/basic/rlimit-util.h')
-rw-r--r--src/basic/rlimit-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/rlimit-util.h b/src/basic/rlimit-util.h
index 42f2e0e547..067e040c61 100644
--- a/src/basic/rlimit-util.h
+++ b/src/basic/rlimit-util.h
@@ -22,4 +22,6 @@ int rlimit_parse(int resource, const char *val, struct rlimit *ret);
int rlimit_format(const struct rlimit *rl, char **ret);
+void rlimit_free_all(struct rlimit **rl);
+
#define RLIMIT_MAKE_CONST(lim) ((struct rlimit) { lim, lim })