diff options
author | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2015-09-06 20:05:50 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2015-09-06 20:47:42 +0200 |
commit | 3fb4560e1ebe3144a0f475373eeaaaf7ca91f501 (patch) | |
tree | aaf87137a900a476d3222113cdc17e0c8dd49b6e /print-loopback.c | |
parent | 08989170ad2bf0aa692799f7e8836b41514270f4 (diff) | |
download | tcpdump-3fb4560e1ebe3144a0f475373eeaaaf7ca91f501.tar.gz |
Rename cstr[] to istr[] like invalid string
Moreover:
Hamonise the output for error messages
Add istr[] in print-babel.c
Diffstat (limited to 'print-loopback.c')
-rw-r--r-- | print-loopback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-loopback.c b/print-loopback.c index fa679512..1391ba71 100644 --- a/print-loopback.c +++ b/print-loopback.c @@ -42,7 +42,7 @@ #include "addrtoname.h" static const char tstr[] = " [|loopback]"; -static const char cstr[] = " (invalid)"; +static const char istr[] = " (invalid)"; #define LOOPBACK_REPLY 1 #define LOOPBACK_FWDDATA 2 @@ -97,7 +97,7 @@ loopback_message_print(netdissect_options *ndo, const u_char *cp, const u_int le return; invalid: - ND_PRINT((ndo, "%s", cstr)); + ND_PRINT((ndo, "%s", istr)); ND_TCHECK2(*cp, ep - cp); return; trunc: @@ -126,7 +126,7 @@ loopback_print(netdissect_options *ndo, const u_char *cp, const u_int len) return; invalid: - ND_PRINT((ndo, "%s", cstr)); + ND_PRINT((ndo, "%s", istr)); ND_TCHECK2(*cp, ep - cp); return; trunc: |