dirmngr: Use a function to increment network short.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 12 Apr 2017 00:11:20 +0000 (09:11 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 12 Apr 2017 00:11:20 +0000 (09:11 +0900)
commit64904ce627b6b0661acf15b5b70103c4842bb0f3
tree15d53bbad7be1fffa5b375d14f6bdb4ad247f21a
parent05218829589f6d4b09933fa19f568c2019367d5c
dirmngr: Use a function to increment network short.

* dirmngr/dns.c (plus1_ns): New.
(dns_p_push): Use it.

--

On OpenBSD, htons and ntohs are expanded to GCC's statement
expressions where local variable is allowed.  Consecutive use
of htons and ntohs causes problem of variable name.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
dirmngr/dns.c