Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/ntp/ntptrace Immediately return from dhost() if hos...



details:   https://anonhg.NetBSD.org/src/rev/833fd89115f9
branches:  trunk
changeset: 556780:833fd89115f9
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sat Dec 27 00:58:35 2003 +0000

description:
Immediately return from dhost() if host is localhost, to
avoid a warning from host(1).
>From Nicolas Joly in PR 23897.

diffstat:

 usr.sbin/ntp/ntptrace/ntptrace.awk |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 9f4d7742c6c2 -r 833fd89115f9 usr.sbin/ntp/ntptrace/ntptrace.awk
--- a/usr.sbin/ntp/ntptrace/ntptrace.awk        Sat Dec 27 00:29:21 2003 +0000
+++ b/usr.sbin/ntp/ntptrace/ntptrace.awk        Sat Dec 27 00:58:35 2003 +0000
@@ -111,6 +111,7 @@
 }
 
 function dhost(myhost,  command) {
+       if (myhost == "localhost") return myhost
        command = "host " myhost
        while (command | getline) {
            if (use_numeric) {



Home | Main Index | Thread Index | Old Index