From a6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 15:52:39 +0200 Subject: format files --- src/dnstxt.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/dnstxt.c') diff --git a/src/dnstxt.c b/src/dnstxt.c index 385928e..a838d64 100644 --- a/src/dnstxt.c +++ b/src/dnstxt.c @@ -1,32 +1,32 @@ #include + #include "buffer.h" -#include "stralloc.h" #include "dnsresolv.h" -#include "dns.h" #include "exit.h" #include "logmsg.h" +#include "stralloc.h" + +#include "dns.h" #define WHO "dnstext" stralloc sa = {0}; stralloc out = {0}; -int main(int argc,char **argv) +int main(int argc, char **argv) { int r; - if (!argv[1]) - logmsg(WHO,100,USAGE,"dnstxt fqdn"); + if (!argv[1]) logmsg(WHO, 100, USAGE, "dnstxt fqdn"); - if (!stralloc_copys(&sa,argv[1])) - logmsg(WHO,111,FATAL,"out of memory"); + if (!stralloc_copys(&sa, argv[1])) logmsg(WHO, 111, FATAL, "out of memory"); DNS_INIT - if ((r = dns_txt(&out,&sa)) < 0) _exit(1); + if ((r = dns_txt(&out, &sa)) < 0) _exit(1); if (r > 0) { - buffer_put(buffer_1,out.s,out.len); - buffer_putsflush(buffer_1,"\n"); + buffer_put(buffer_1, out.s, out.len); + buffer_putsflush(buffer_1, "\n"); } - + _exit(0); } -- cgit v1.2.3