dirmngr: Minor cleanup of the SRV RR code.
authorWerner Koch <wk@gnupg.org>
Wed, 28 Oct 2015 09:14:07 +0000 (10:14 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 28 Oct 2015 09:14:30 +0000 (10:14 +0100)
commit949a5cfdabcafab93c1ac092c0459b59318805b9
treec8d254844a6392b527fba9e2a94f2cbef754d727
parente026efb4363bc6e3c41ed533daf06f103ebd2e32
dirmngr: Minor cleanup of the SRV RR code.

* dirmngr/dns-stuff.c: Include unistd.h.
(getsrv): Run srand only once.
* dirmngr/t-dns-stuff.c (main): Allow passing another name for --srv
and change output format.
dirmngr/dns-stuff.c
dirmngr/t-dns-stuff.c