mirror of
https://github.com/systemd/systemd.git
synced 2025-01-18 10:04:04 +03:00
parse-util: drop unused parse_ip_prefix_length()
This commit is contained in:
parent
74601abcdd
commit
83c187f585
@ -714,22 +714,6 @@ int parse_ip_port_range(const char *s, uint16_t *low, uint16_t *high, bool allow
|
||||
return 0;
|
||||
}
|
||||
|
||||
int parse_ip_prefix_length(const char *s, int32_t *ret) {
|
||||
unsigned l;
|
||||
int r;
|
||||
|
||||
r = safe_atou(s, &l);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (l > 128)
|
||||
return -ERANGE;
|
||||
|
||||
*ret = (int32_t) l;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int parse_oom_score_adjust(const char *s, int *ret) {
|
||||
int r, v;
|
||||
|
||||
|
@ -141,8 +141,6 @@ int parse_nice(const char *p, int *ret);
|
||||
int parse_ip_port(const char *s, uint16_t *ret);
|
||||
int parse_ip_port_range(const char *s, uint16_t *low, uint16_t *high, bool allow_zero);
|
||||
|
||||
int parse_ip_prefix_length(const char *s, int32_t *ret);
|
||||
|
||||
int parse_oom_score_adjust(const char *s, int *ret);
|
||||
|
||||
/* Implement floating point using fixed integers, to improve performance when
|
||||
|
Loading…
x
Reference in New Issue
Block a user