aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-http.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2009-03-30 18:40:33 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2009-03-30 18:40:33 +0000
commit30f0a56571ec0654ea639d625140e438bdde802e (patch)
treee3b7dd53122e3dba48e244c5d39498aa8051710d /epan/dissectors/packet-http.c
parent35bd0c487d6fc9e3e1e4a3d2fc1b9be915b4e2ba (diff)
More size_t casts.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27897 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-http.c')
-rw-r--r--epan/dissectors/packet-http.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-http.c b/epan/dissectors/packet-http.c
index 64698175c7..f719c3e9c5 100644
--- a/epan/dissectors/packet-http.c
+++ b/epan/dissectors/packet-http.c
@@ -1213,7 +1213,7 @@ basic_request_dissector(tvbuff_t *tvb, proto_tree *tree, int offset,
return;
proto_tree_add_item(tree, hf_http_request_method, tvb, offset, tokenlen,
FALSE);
- offset += next_token - line;
+ offset += (int) (next_token - line);
line = next_token;
/* The next token is the URI. */
@@ -1228,11 +1228,11 @@ basic_request_dissector(tvbuff_t *tvb, proto_tree *tree, int offset,
proto_tree_add_string(tree, hf_http_request_uri, tvb, offset, tokenlen,
request_uri);
- offset += next_token - line;
+ offset += (int) (next_token - line);
line = next_token;
/* Everything to the end of the line is the version. */
- tokenlen = lineend - line;
+ tokenlen = (int) (lineend - line);
if (tokenlen == 0)
return;
proto_tree_add_item(tree, hf_http_version, tvb, offset, tokenlen,
@@ -1254,7 +1254,7 @@ basic_response_dissector(tvbuff_t *tvb, proto_tree *tree, int offset,
return;
proto_tree_add_item(tree, hf_http_version, tvb, offset, tokenlen,
FALSE);
- offset += next_token - line;
+ offset += (int) (next_token - line);
line = next_token;
/* The next token is the status code. */