Home GnuPG
Diffusion GnuPG 64904ce627b6

dirmngr: Use a function to increment network short.

Description

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>

Details

Provenance
gniibeAuthored on Apr 12 2017, 2:11 AM
Parents
rG05218829589f: g10: Minor clean up for export.c.
Branches
Unknown
Tags
Unknown