From 065d5c8417d3b21cbbf90f3f78917760079b006e Mon Sep 17 00:00:00 2001 From: AndersBroman Date: Wed, 29 Oct 2014 16:27:42 +0100 Subject: Don't include ctype.h and replace isascii() with _ascii_isprint(). Remove deprecated APIs while at it. Change-Id: I002ed4a696782caaeeb70a3e4ced4ae81f3d5372 Reviewed-on: https://code.wireshark.org/review/4983 Reviewed-by: Anders Broman --- asn1/h248/h248.cnf | 6 +++--- asn1/h248/packet-h248-template.c | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'asn1') diff --git a/asn1/h248/h248.cnf b/asn1/h248/h248.cnf index 81b50c8971..018807d8ce 100644 --- a/asn1/h248/h248.cnf +++ b/asn1/h248/h248.cnf @@ -338,7 +338,7 @@ AuditReplyV1/auditResult audit_result offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &new_tvb); if (new_tvb) { - curr_info.term->len = tvb_length(new_tvb); + curr_info.term->len = tvb_reported_length(new_tvb); curr_info.term->type = 0; /* unknown */ if (h248_term_handle) { @@ -396,13 +396,13 @@ AuditReplyV1/auditResult audit_result #.FN_BODY ValueV1 /* check tvb to verify all values ascii or not. If so, output string, else hex */ - len=tvb_length_remaining(tvb, offset); + len=tvb_reported_length_remaining(tvb, offset); if ( curr_info.par && curr_info.par->dissector) { curr_info.par->dissector(tree, /*next_*/tvb, actx->pinfo, *(curr_info.par->hfid), &curr_info, curr_info.par->data); } else { /* if no registered dissector create output */ for( i=0;iname, diff --git a/asn1/h248/packet-h248-template.c b/asn1/h248/packet-h248-template.c index 2d8fb1a664..c2c18d516e 100644 --- a/asn1/h248/packet-h248-template.c +++ b/asn1/h248/packet-h248-template.c @@ -30,7 +30,6 @@ #include #include #include "packet-tpkt.h" -#include #include "packet-mtp3.h" #define PNAME "H.248 MEGACO" -- cgit v1.2.1