From 78c3cebc389a2b0d426d74900a65b8656edb426d Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 26 Oct 2026 18:13:27 +0100 Subject: Third run of making variable and function names more readable, integer scans and ip parsers --- proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proxy.c') diff --git a/proxy.c b/proxy.c index 0cac20c..a5c6bb7 100644 --- a/proxy.c +++ b/proxy.c @@ -507,7 +507,7 @@ static int scan_ip6_port(const char *src, ot_ip6 ip, uint16_t *port) { ++s; if (*s == '[') ++s, ++bracket; /* for v6 style notation */ - if (!(off = ip_scan(s, ip))) + if (!(off = ip_parse(s, ip))) return 0; s += off; if (*s == 0 || isspace(*s)) @@ -522,7 +522,7 @@ static int scan_ip6_port(const char *src, ot_ip6 ip, uint16_t *port) { if (*(s++) != ':') return 0; } - if (!(off = scan_udec(s, &value, 65535))) + if (!(off = scan_uint(s, &value, 65535))) return 0; *port = (uint16_t)value; return off + s - src; -- cgit v1.3