diff options
Diffstat (limited to 'sqmail-4.3.07/src/dnscname.c')
-rw-r--r-- | sqmail-4.3.07/src/dnscname.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sqmail-4.3.07/src/dnscname.c b/sqmail-4.3.07/src/dnscname.c deleted file mode 100644 index 546d273..0000000 --- a/sqmail-4.3.07/src/dnscname.c +++ /dev/null @@ -1,32 +0,0 @@ -#include <unistd.h> -#include "buffer.h" -#include "stralloc.h" -#include "dnsresolv.h" -#include "exit.h" -#include "dns.h" -#include "logmsg.h" - -#define WHO "dnscname" - -stralloc sa = {0}; -stralloc out = {0}; - -int main(int argc,char **argv) -{ - int r; - - if (!argv[1]) - logmsg(WHO,100,USAGE,"dnscname fqdn"); - - if (!stralloc_copys(&sa,argv[1])) - logmsg(WHO,111,FATAL,"out of memory"); - - DNS_INIT - if ((r = dns_cname(&out,&sa)) < 0) _exit(1); - if (r > 0) { - buffer_putflush(buffer_1,out.s,out.len); - buffer_putsflush(buffer_1,"\n"); - } - - _exit(0); -} |