aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-http.c
diff options
context:
space:
mode:
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-18 17:38:08 +0000
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-18 17:38:08 +0000
commit8034ec04009d8ac0114b9aa0d56851fa544d6395 (patch)
tree6c64bf643eb908c7f0dff20a6342022afc8bc979 /epan/dissectors/packet-http.c
parentd1e57e447ef4fa5ba0075dc6e39a736e2f2986ee (diff)
Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36700 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-http.c')
-rw-r--r--epan/dissectors/packet-http.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/epan/dissectors/packet-http.c b/epan/dissectors/packet-http.c
index 79033cf7cc..1ae5069ce6 100644
--- a/epan/dissectors/packet-http.c
+++ b/epan/dissectors/packet-http.c
@@ -228,16 +228,6 @@ static range_t *global_http_ssl_range = NULL;
static range_t *http_tcp_range = NULL;
static range_t *http_ssl_range = NULL;
-
-/*
- * Protocols implemented atop HTTP.
- */
-typedef enum {
- PROTO_HTTP, /* just HTTP */
- PROTO_SSDP, /* Simple Service Discovery Protocol */
- PROTO_DAAP /* Digital Audio Access Protocol */
-} http_proto_t;
-
typedef void (*ReqRespDissector)(tvbuff_t*, proto_tree*, int, const guchar*,
const guchar*, http_conv_t *);
@@ -589,7 +579,6 @@ static int
dissect_http_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree, http_conv_t *conv_data)
{
- http_proto_t proto;
const char *proto_tag;
proto_tree *http_tree = NULL;
proto_item *ti = NULL;
@@ -659,17 +648,14 @@ dissect_http_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
switch (pinfo->match_uint) {
case TCP_PORT_SSDP: /* TCP_PORT_SSDP = UDP_PORT_SSDP */
- proto = PROTO_SSDP;
proto_tag = "SSDP";
break;
case TCP_PORT_DAAP:
- proto = PROTO_DAAP;
proto_tag = "DAAP";
break;
default:
- proto = PROTO_HTTP;
proto_tag = "HTTP";
break;
}
@@ -1662,7 +1648,6 @@ is_http_request_or_reply(const gchar *data, int linelen, http_type_t *type,
http_conv_t *conv_data)
{
int isHttpRequestOrReply = FALSE;
- int prefix_len = 0;
/*
* From RFC 2774 - An HTTP Extension Framework
@@ -1673,7 +1658,6 @@ is_http_request_or_reply(const gchar *data, int linelen, http_type_t *type,
if (linelen >= 2 && strncmp(data, "M-", 2) == 0) {
data += 2;
linelen -= 2;
- prefix_len = 2;
}
/*