diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-04 22:45:01 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-05 10:45:44 +0100 |
commit | 03a2d9c4c1e360def4f9d0473f9b378ef2f14431 (patch) | |
tree | a4c461c32a90c3b7b671c0b15edc70ac18be5a36 /print-resp.c | |
parent | 7e3467df250235e68fea65320a89a5116da85be2 (diff) | |
download | tcpdump-03a2d9c4c1e360def4f9d0473f9b378ef2f14431.tar.gz |
Use more the EXTRACT_U_1() macro (47/n)
In: if (... *(p) ...) ...
Diffstat (limited to 'print-resp.c')
-rw-r--r-- | print-resp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-resp.c b/print-resp.c index c2b6e63a..71b198fd 100644 --- a/print-resp.c +++ b/print-resp.c @@ -467,7 +467,7 @@ resp_get_length(netdissect_options *ndo, register const u_char *bp, int len, con ND_TCHECK_1(bp); too_large = 0; neg = 0; - if (*bp == '-') { + if (EXTRACT_U_1(bp) == '-') { neg = 1; bp++; len--; @@ -508,7 +508,7 @@ resp_get_length(netdissect_options *ndo, register const u_char *bp, int len, con * OK, we found a non-digit character. It should be a \r, followed * by a \n. */ - if (*bp != '\r') { + if (EXTRACT_U_1(bp) != '\r') { bp++; goto invalid; } @@ -517,7 +517,7 @@ resp_get_length(netdissect_options *ndo, register const u_char *bp, int len, con if (len == 0) goto trunc; ND_TCHECK_1(bp); - if (*bp != '\n') { + if (EXTRACT_U_1(bp) != '\n') { bp++; goto invalid; } |