diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-02 16:16:02 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-02 16:17:21 +0100 |
commit | c6a0c105334b262707361884d682a5fdfb4cc11d (patch) | |
tree | 112dbf6d3749dd21ba86a9eaf3646c494278b068 | |
parent | 1eae026e557619f80178239dfb79edfd92a31125 (diff) | |
download | tcpdump-c6a0c105334b262707361884d682a5fdfb4cc11d.tar.gz |
Use more the ND_TCHECK_1() macro
-rw-r--r-- | print-resp.c | 2 | ||||
-rw-r--r-- | print-telnet.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/print-resp.c b/print-resp.c index 1d24b58e..5e5bde0d 100644 --- a/print-resp.c +++ b/print-resp.c @@ -116,7 +116,7 @@ static int resp_get_length(netdissect_options *, const u_char *, int, const u_ch #define FIND_CR_OR_LF(_ptr, _len) \ for (;;) { \ LCHECK(_len); \ - ND_TCHECK(*_ptr); \ + ND_TCHECK_1(_ptr); \ if (*_ptr == '\r' || *_ptr == '\n') \ break; \ _ptr++; \ diff --git a/print-telnet.c b/print-telnet.c index 41e24462..c65b48fb 100644 --- a/print-telnet.c +++ b/print-telnet.c @@ -397,7 +397,7 @@ telnet_parse(netdissect_options *ndo, const u_char *sp, u_int length, int print) do { \ if (length < 1) \ goto pktend; \ - ND_TCHECK(*sp); \ + ND_TCHECK_1(sp); \ c = *sp++; \ length--; \ } while (0) |