diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-04 23:58:13 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-04 23:58:13 +0100 |
commit | 074e8dcba76ac2a313d6a14ca2289e648f926b25 (patch) | |
tree | 5528ca50a4d9a0a1b2e5a7d7b01c0afc987330ef | |
parent | 28055028a709020ba7eb44f9e5037d0a952b51d6 (diff) | |
download | busybox-w32-074e8dcba76ac2a313d6a14ca2289e648f926b25.tar.gz busybox-w32-074e8dcba76ac2a313d6a14ca2289e648f926b25.tar.bz2 busybox-w32-074e8dcba76ac2a313d6a14ca2289e648f926b25.zip |
ntpd: make -w less cumbersome to use
function old new delta
packed_usage 26767 26779 +12
recv_and_process_peer_pkt 808 817 +9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/usage.h | 2 | ||||
-rw-r--r-- | networking/ntpd.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/usage.h b/include/usage.h index 5a2524112..eab57d8ae 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -3233,7 +3233,7 @@ | |||
3233 | /* -N exists for mostly compat reasons, thus not essential to inform */ \ | 3233 | /* -N exists for mostly compat reasons, thus not essential to inform */ \ |
3234 | /* the user that it exists: user may use nice as well */ \ | 3234 | /* the user that it exists: user may use nice as well */ \ |
3235 | /* "\n -N Run at high priority" */ \ | 3235 | /* "\n -N Run at high priority" */ \ |
3236 | "\n -w Do not set time (used to look at peer data)" \ | 3236 | "\n -w Do not set time (only query peers), implies -n" \ |
3237 | "\n -l Run as server on port 123" \ | 3237 | "\n -l Run as server on port 123" \ |
3238 | "\n -p PEER Obtain time from PEER (may be repeated)" \ | 3238 | "\n -p PEER Obtain time from PEER (may be repeated)" \ |
3239 | 3239 | ||
diff --git a/networking/ntpd.c b/networking/ntpd.c index 84ee54307..ab1c58c97 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -1466,7 +1466,7 @@ recv_and_process_peer_pkt(peer_t *p) | |||
1466 | } | 1466 | } |
1467 | 1467 | ||
1468 | p->reachable_bits |= 1; | 1468 | p->reachable_bits |= 1; |
1469 | VERB1 { | 1469 | if ((MAX_VERBOSE && G.verbose) || (option_mask32 & OPT_w)) { |
1470 | bb_error_msg("reply from %s: reach 0x%02x offset %f delay %f status 0x%02x strat %d refid 0x%08x rootdelay %f", | 1470 | bb_error_msg("reply from %s: reach 0x%02x offset %f delay %f status 0x%02x strat %d refid 0x%08x rootdelay %f", |
1471 | p->p_dotted, | 1471 | p->p_dotted, |
1472 | p->reachable_bits, | 1472 | p->reachable_bits, |
@@ -1733,7 +1733,7 @@ static NOINLINE void ntp_init(char **argv) | |||
1733 | 1733 | ||
1734 | /* Parse options */ | 1734 | /* Parse options */ |
1735 | peers = NULL; | 1735 | peers = NULL; |
1736 | opt_complementary = "dd:p::"; /* d: counter, p: list */ | 1736 | opt_complementary = "dd:p::wn"; /* d: counter; p: list; -w implies -n */ |
1737 | opts = getopt32(argv, | 1737 | opts = getopt32(argv, |
1738 | "nqNx" /* compat */ | 1738 | "nqNx" /* compat */ |
1739 | "wp:"IF_FEATURE_NTPD_SERVER("l") /* NOT compat */ | 1739 | "wp:"IF_FEATURE_NTPD_SERVER("l") /* NOT compat */ |