diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2007-03-28 07:06:39 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2007-03-28 07:06:39 +0000 |
commit | 85a464c98012ebad9a612dbd76b4662442f1821b (patch) | |
tree | 54f5b092d39996c74a7ddc7acb7feb6ae3834454 /epan/dissectors/packet-smtp.c | |
parent | 4b0b2c289446f1073dfc7fbac39a08e3942e3b02 (diff) |
Fix a bunch of warnings, add svn:keywords Id and svn:eol-style native
to packet-iuup.c.
svn path=/trunk/; revision=21244
Diffstat (limited to 'epan/dissectors/packet-smtp.c')
-rw-r--r-- | epan/dissectors/packet-smtp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-smtp.c b/epan/dissectors/packet-smtp.c index fe3f05ee35..ddc7126c87 100644 --- a/epan/dissectors/packet-smtp.c +++ b/epan/dissectors/packet-smtp.c @@ -262,7 +262,7 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (linelen >= 4 && ISALPHA(line[0]) && ISALPHA(line[1]) && ISALPHA(line[2]) && ISALPHA(line[3]) && (linelen == 4 || line[4] == ' ')) { - if (strncasecmp(line, "DATA", 4) == 0) { + if (strncasecmp((char*)line, "DATA", 4) == 0) { /* * DATA command. @@ -281,9 +281,9 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } } else { - if ((linelen >= 7) && line[0] == 'X' && ( (strncasecmp(line, "X-EXPS ", 7) == 0) || - ((linelen >=13) && (strncasecmp(line, "X-LINK2STATE ", 13) == 0)) || - ((linelen >= 8) && (strncasecmp(line, "XEXCH50 ", 8) == 0)) )) + if ((linelen >= 7) && line[0] == 'X' && ( (strncasecmp((char*)line, "X-EXPS ", 7) == 0) || + ((linelen >=13) && (strncasecmp((char*)line, "X-LINK2STATE ", 13) == 0)) || + ((linelen >= 8) && (strncasecmp((char*)line, "XEXCH50 ", 8) == 0)) )) frame_data->pdu_type = SMTP_PDU_CMD; else /* |