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-ascii.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-ascii.c')
-rw-r--r-- | print-ascii.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/print-ascii.c b/print-ascii.c index 55e0ae72..2f05c387 100644 --- a/print-ascii.c +++ b/print-ascii.c @@ -153,16 +153,16 @@ hex_print_with_offset(netdissect_options *ndo, i = 0; while (--nshorts >= 0) { if ((i++ % 8) == 0) { - (void)ND_PRINT((ndo,"%s0x%04x: ", ident, oset)); - oset += HEXDUMP_BYTES_PER_LINE; + ND_PRINT((ndo,"%s0x%04x: ", ident, oset)); + oset += HEXDUMP_BYTES_PER_LINE; } s = *cp++; - (void)ND_PRINT((ndo," %02x%02x", s, *cp++)); + ND_PRINT((ndo," %02x%02x", s, *cp++)); } if (length & 1) { if ((i % 8) == 0) - (void)ND_PRINT((ndo,"%s0x%04x: ", ident, oset)); - (void)ND_PRINT((ndo," %02x", *cp)); + ND_PRINT((ndo,"%s0x%04x: ", ident, oset)); + ND_PRINT((ndo," %02x", *cp)); } } |