diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2014-03-26 13:08:22 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2014-03-26 15:49:27 +0400 |
commit | d6af516cbc7c874404cb07456a6e80a8e9ddd9b4 (patch) | |
tree | 52828124908adb5e860f0da0e4dbcb8c51e595e5 /print-dhcp6.c | |
parent | ea256d91381ac0ebb3d159511b3e78d4dff0b917 (diff) | |
download | tcpdump-d6af516cbc7c874404cb07456a6e80a8e9ddd9b4.tar.gz |
finalize some previous NDO conversions
Eliminate a number of fputs(), putchar() and fflush() uses. Justify
preprocessor directives. Don't typecast ND_PRINT() to void and fix some
indentation.
Diffstat (limited to 'print-dhcp6.c')
-rw-r--r-- | print-dhcp6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-dhcp6.c b/print-dhcp6.c index 70c0e15c..28b30451 100644 --- a/print-dhcp6.c +++ b/print-dhcp6.c @@ -606,7 +606,7 @@ dhcp6opt_print(netdissect_options *ndo, case DH6OPT_DOMAIN_LIST: tp = (u_char *)(dh6o + 1); while (tp < cp + sizeof(*dh6o) + optlen) { - putchar(' '); + ND_PRINT((ndo, " ")); if ((tp = ns_nprint(ndo, tp, cp + sizeof(*dh6o) + optlen)) == NULL) goto trunc; } @@ -759,7 +759,7 @@ dhcp6opt_print(netdissect_options *ndo, ND_PRINT((ndo, " %s", ip6addr_string(&tp[0]))); break; case DH6OPT_NTP_SUBOPTION_SRV_FQDN: - putchar(' '); + ND_PRINT((ndo, " ")); if (ns_nprint(ndo, tp, tp + subopt_len) == NULL) goto trunc; break; |