MINOR: tools: make url2ipv4 return the exact number of bytes parsed
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Mar 2021 10:34:40 +0000 (11:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Mar 2021 14:18:47 +0000 (15:18 +0100)
commit12e1027aa6c7687b5638c0c9260696266c9e400b
treea53fbf52c5d7d5e09a82ab332ba56d9c5ab27d90
parenta9a9e9aac93bae4d21d22e02fd436717a5a4a07a
MINOR: tools: make url2ipv4 return the exact number of bytes parsed

The function's return value is currently used as a boolean but we'll
need it to return the number of bytes parsed. Right now it returns
it minus one, unless the last char doesn't match what is permitted.
Let's update this to make it more usable.
src/tools.c