diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2019-07-13 18:34:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-13 18:34:40 +0200 |
commit | c65025f7b005444b6100f50ca49ef537fcd72c0b (patch) | |
tree | ee3ad9e59b84ad6b2519302e3b3d754d8f499da7 /src/lib/protocols/http.c | |
parent | ea32d535eb2a52f0146e6bd7054281138d106299 (diff) | |
parent | 92c769f206d407024cec677b838e67e64769249e (diff) |
Merge pull request #737 from themadprofessor/dev
Add compiler warnings and fix them
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r-- | src/lib/protocols/http.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index de2bb032e..51ec9ded8 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -123,7 +123,6 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_ struct ndpi_flow_struct *flow) { struct ndpi_packet_struct *packet = &flow->packet; - u_int8_t a; if((!ndpi_struct->http_dont_dissect_response) && flow->http_detected && (flow->http.response_status_code != 0)) { ndpi_set_detected_protocol(ndpi_struct, flow, flow->http_upper_protocol, flow->http_lower_protocol); @@ -425,10 +424,6 @@ static struct l_string { STATIC_STRING_L("REPORT ") }; static const char *http_fs = "CDGHOPR"; -static uint8_t non_ctrl(uint8_t c) { - return c < 32 ? '.':c; -} - static u_int16_t http_request_url_offset(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { struct ndpi_packet_struct *packet = &flow->packet; |