commit 77f058cb8c01cc257624b0f4e1d07979b69a4e12
parent 123fa007ca4e6e5ba55c62775c5d24a6c3ab794d
Author: Alan Post <adp@prgmr.com>
Date: Thu, 22 Aug 2019 06:22:09 -0600
remove dnsmxip.
This program is part of the in-tree dns configuration used by
config and config-fast, but unused.
Diffstat:
4 files changed, 2 insertions(+), 56 deletions(-)
diff --git a/CHANGES b/CHANGES
@@ -1,3 +1,4 @@
+20190822 cleanup: remove unused dnsmxip.
20190822 cleanup: remove unused dnscname.
20190819 version: notqmail 1.07.
20190810 code: remove incorrect usage of vfork()
diff --git a/Makefile b/Makefile
@@ -481,19 +481,6 @@ compile dnsip.c substdio.h subfd.h substdio.h stralloc.h gen_alloc.h \
dns.h dnsdoe.h ip.h ipalloc.h ip.h gen_alloc.h exit.h
./compile dnsip.c
-dnsmxip: \
-load dnsmxip.o dns.o dnsdoe.o ip.o ipalloc.o now.o stralloc.a alloc.a \
-substdio.a error.a str.a fs.a dns.lib socket.lib
- ./load dnsmxip dns.o dnsdoe.o ip.o ipalloc.o now.o \
- stralloc.a alloc.a substdio.a error.a str.a fs.a `cat \
- dns.lib` `cat socket.lib`
-
-dnsmxip.o: \
-compile dnsmxip.c substdio.h subfd.h substdio.h stralloc.h \
-gen_alloc.h fmt.h dns.h dnsdoe.h ip.h ipalloc.h ip.h gen_alloc.h \
-now.h datetime.h exit.h
- ./compile dnsmxip.c
-
dnsptr: \
load dnsptr.o dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a \
substdio.a error.a str.a fs.a dns.lib socket.lib
@@ -836,7 +823,7 @@ predate datemail mailsubj qmail-upq qmail-showctl qmail-newu \
qmail-pw2u qmail-qread qmail-qstat qmail-tcpto qmail-tcpok \
qmail-pop3d qmail-popup qmail-qmqpc qmail-qmqpd qmail-qmtpd \
qmail-smtpd sendmail tcp-env qmail-newmrh config config-fast \
-dnsptr dnsip dnsmxip dnsfq hostname ipmeprint qreceipt qsmhook qbiff \
+dnsptr dnsip dnsfq hostname ipmeprint qreceipt qsmhook qbiff \
forward preline condredirect bouncesaying except maildirmake \
maildir2mbox maildirwatch qail elq pinq install instpackage instchown \
instcheck home home+df proc proc+df binm1 binm1+df binm2 binm2+df \
diff --git a/TARGETS b/TARGETS
@@ -289,8 +289,6 @@ dnsptr.o
dnsptr
dnsip.o
dnsip
-dnsmxip.o
-dnsmxip
dnsfq.o
dnsfq
hostname.o
diff --git a/dnsmxip.c b/dnsmxip.c
@@ -1,40 +0,0 @@
-#include "substdio.h"
-#include "subfd.h"
-#include "stralloc.h"
-#include "fmt.h"
-#include "dns.h"
-#include "dnsdoe.h"
-#include "ip.h"
-#include "ipalloc.h"
-#include "now.h"
-#include "exit.h"
-
-char temp[IPFMT + FMT_ULONG];
-
-stralloc sa = {0};
-ipalloc ia = {0};
-
-void main(argc,argv)
-int argc;
-char **argv;
-{
- int j;
- unsigned long r;
-
- if (!argv[1]) _exit(100);
-
- if (!stralloc_copys(&sa,argv[1]))
- { substdio_putsflush(subfderr,"out of memory\n"); _exit(111); }
-
- r = now() + getpid();
- dns_init(0);
- dnsdoe(dns_mxip(&ia,&sa,r));
- for (j = 0;j < ia.len;++j)
- {
- substdio_put(subfdout,temp,ip_fmt(temp,&ia.ix[j].ip));
- substdio_puts(subfdout," ");
- substdio_put(subfdout,temp,fmt_ulong(temp,(unsigned long) ia.ix[j].pref));
- substdio_putsflush(subfdout,"\n");
- }
- _exit(0);
-}