diff options
author | David Michael <fedora.dm0@gmail.com> | 2016-08-04 04:09:54 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-08-04 13:09:54 +0200 |
commit | 5124866d7355b685c08aef6abc618e03367e4b93 (patch) | |
tree | 5b29b609bffc7684facdfd21c08267ed278798e6 /src/basic/parse-util.h | |
parent | 19c8201744035d92a6480cc58944c0c18fcebdc6 (diff) |
util-lib: add parse_percent_unbounded() for percentages over 100% (#3886)
This permits CPUQuota to accept greater values as documented.
Diffstat (limited to 'src/basic/parse-util.h')
-rw-r--r-- | src/basic/parse-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/parse-util.h b/src/basic/parse-util.h index 73441bb6fd..f0fa5f9752 100644 --- a/src/basic/parse-util.h +++ b/src/basic/parse-util.h @@ -106,4 +106,5 @@ int safe_atod(const char *s, double *ret_d); int parse_fractional_part_u(const char **s, size_t digits, unsigned *res); +int parse_percent_unbounded(const char *p); int parse_percent(const char *p); |