noip.c (encode_..._inet_addr: Abstract out checking a single address.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 19:10:14 +0000 (20:10 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 19:13:05 +0000 (20:13 +0100)
commit81e3737d842818a305e23802405f4e15b5e8381d
tree0b5fe924a2097413a6dd6586c08ff90527f3c889
parent4b1a617448e8ce7b0169f45523fcee8d861cd573
noip.c (encode_..._inet_addr: Abstract out checking a single address.

There's this common pattern of building the Unix-domain socket address,
probing its status, maybe unlinking the socket if it's stale, and
returning the result.  Let's only write that once.

No functional change.
noip.c