summaryrefslogtreecommitdiff
path: root/print-ftp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-03-07 22:20:34 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-03-08 10:12:21 +0100
commit9be45b2369666607980451d0c85b6fc62d529189 (patch)
tree17b2e669a9d6922ea1fb58eabeefc39d179328fe /print-ftp.c
parente85072ad1d966b1fa4c9a791debf9c5f02e416a9 (diff)
downloadtcpdump-9be45b2369666607980451d0c85b6fc62d529189.tar.gz
Use the ndo->ndo_protocol field instead of the protoname parameter
Moreover: Fix a truncated string: "[!" is not the prefix for a truncated string. Add two comments. Clean up a whitespace.
Diffstat (limited to 'print-ftp.c')
-rw-r--r--print-ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-ftp.c b/print-ftp.c
index f5646874..98335ed5 100644
--- a/print-ftp.c
+++ b/print-ftp.c
@@ -29,5 +29,5 @@ void
ftp_print(netdissect_options *ndo, const u_char *pptr, u_int len)
{
ndo->ndo_protocol = "ftp";
- txtproto_print(ndo, pptr, len, "ftp", NULL, 0);
+ txtproto_print(ndo, pptr, len, NULL, 0);
}