aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ftp.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-03-27 22:50:11 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-03-27 22:50:11 +0000
commitab8f589336e61170090c0ac07eb266a295f3bdfb (patch)
treed6caa166a922ab9201a06c6827d5408546e38be8 /epan/dissectors/packet-ftp.c
parentddddf2d668e2ef29c6902da10cbd4ffd4f772e47 (diff)
Fix about 100 simple to fix warnings from gcc 4.0 in epan/dissectors
svn path=/trunk/; revision=21233
Diffstat (limited to 'epan/dissectors/packet-ftp.c')
-rw-r--r--epan/dissectors/packet-ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ftp.c b/epan/dissectors/packet-ftp.c
index ea62b24274..da9e7b597d 100644
--- a/epan/dissectors/packet-ftp.c
+++ b/epan/dissectors/packet-ftp.c
@@ -315,7 +315,7 @@ dissect_ftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
hf_ftp_request_command, tvb, offset,
tokenlen, FALSE);
}
- if (strncmp(line, "PORT", tokenlen) == 0)
+ if (strncmp((char*)line, "PORT", tokenlen) == 0)
is_port_request = TRUE;
}
} else {
@@ -337,7 +337,7 @@ dissect_ftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* One-line reply, or first or last line
* of a multi-line reply.
*/
- tvb_get_nstringz0(tvb, offset, sizeof(code_str), code_str);
+ tvb_get_nstringz0(tvb, offset, sizeof(code_str), (guint8*)code_str);
code = strtoul(code_str, NULL, 10);
if (tree) {