aboutsummaryrefslogtreecommitdiff
path: root/dns/nsping/files/patch-ab
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2001-04-18 21:37:32 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2001-04-18 21:37:32 +0000
commit01a9f79f0a3692d8148990805beabc8593d3596d (patch)
tree99d1ef5788fc9e55b6948a7d4951ac4a315f63bf /dns/nsping/files/patch-ab
parent8c307777eaf81af4195ae428b3ebbeba734fc5af (diff)
Notes
Diffstat (limited to 'dns/nsping/files/patch-ab')
-rw-r--r--dns/nsping/files/patch-ab28
1 files changed, 0 insertions, 28 deletions
diff --git a/dns/nsping/files/patch-ab b/dns/nsping/files/patch-ab
deleted file mode 100644
index 970acc7d39cc..000000000000
--- a/dns/nsping/files/patch-ab
+++ /dev/null
@@ -1,28 +0,0 @@
---- nsping.c.orig Fri Nov 12 15:30:42 1999
-+++ nsping.c Fri Nov 12 15:44:06 1999
-@@ -189,10 +189,14 @@
-
- int guess_zone() {
- char lhn[MAXDNAME];
-+ struct hostent *hp;
- char *cp;
-
- if(gethostname(lhn, MAXDNAME) < 0)
- return(0);
-+ if((hp = gethostbyname(lhn)) == NULL)
-+ return(0);
-+ strlcpy(lhn, hp->h_name, sizeof(lhn));
-
- cp = strchr(lhn, '.');
- if(!cp || !(*(++cp)))
-@@ -679,9 +683,7 @@
- /* -------------------------------------------------------------------------- */
-
- void usage() {
-- fprintf(stderr, "nsping [ -z <zone> | -h <hostname> ] -p <port> -t <timeout>\n"
-- "\t\t-a <local address> -P <local port>\n"
-- "\t\t-T <type> <-r | -R, recurse?>\n");
-+ fprintf(stderr, "Usage: nsping [-dR] [-c count] [-z zone | -h hostname] [-t timeout] [-p dport] [-P sport] [-a saddr] [-T querytype]\n");
- return;
- }
-