aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-17 18:22:05 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-18 01:22:31 +0000
commit77acaa1f4807537b78149cd08c7696ebfc1556f0 (patch)
treec0c310fcd2e4277a4c8d097e92056abfc0bb0864
parent1de3a5bc4932b1a18c931a1c1cea8d1cf5870dd2 (diff)
Get rid of unnecessary includes of ctype.h.
Change-Id: I9e2cd7a9fed33fc2f4b0c0da3603690450f6952d Reviewed-on: https://code.wireshark.org/review/4809 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--asn1/lcsap/packet-lcsap-template.c1
-rw-r--r--asn1/ldap/packet-ldap-template.c1
-rw-r--r--asn1/snmp/packet-snmp-template.c1
-rw-r--r--epan/dissectors/packet-lcsap.c15
-rw-r--r--epan/dissectors/packet-ldap.c13
-rw-r--r--epan/dissectors/packet-snmp.c11
6 files changed, 18 insertions, 24 deletions
diff --git a/asn1/lcsap/packet-lcsap-template.c b/asn1/lcsap/packet-lcsap-template.c
index b2548e73cc..d902773625 100644
--- a/asn1/lcsap/packet-lcsap-template.c
+++ b/asn1/lcsap/packet-lcsap-template.c
@@ -31,7 +31,6 @@
#include <stdio.h>
#include <string.h>
-#include <ctype.h>
#include <math.h>
#include <epan/strutil.h>
diff --git a/asn1/ldap/packet-ldap-template.c b/asn1/ldap/packet-ldap-template.c
index e5a93519e0..d15715be78 100644
--- a/asn1/ldap/packet-ldap-template.c
+++ b/asn1/ldap/packet-ldap-template.c
@@ -83,7 +83,6 @@
#include "config.h"
#include <string.h>
-#include <ctype.h>
#include <glib.h>
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c
index b4277e2cbe..63563e9435 100644
--- a/asn1/snmp/packet-snmp-template.c
+++ b/asn1/snmp/packet-snmp-template.c
@@ -47,7 +47,6 @@
#include "config.h"
#include <string.h>
-#include <ctype.h>
#include <glib.h>
diff --git a/epan/dissectors/packet-lcsap.c b/epan/dissectors/packet-lcsap.c
index dd7326ce59..809e93e5ce 100644
--- a/epan/dissectors/packet-lcsap.c
+++ b/epan/dissectors/packet-lcsap.c
@@ -39,7 +39,6 @@
#include <stdio.h>
#include <string.h>
-#include <ctype.h>
#include <math.h>
#include <epan/strutil.h>
@@ -113,7 +112,7 @@ typedef enum _ProtocolIE_ID_enum {
} ProtocolIE_ID_enum;
/*--- End of included file: packet-lcsap-val.h ---*/
-#line 65 "../../asn1/lcsap/packet-lcsap-template.c"
+#line 64 "../../asn1/lcsap/packet-lcsap-template.c"
/* Strcture to hold ProcedureCode */
struct pro_code {
guint8 code;
@@ -240,7 +239,7 @@ static int hf_lcsap_successfulOutcome_value = -1; /* SuccessfulOutcome_value */
static int hf_lcsap_unsuccessfulOutcome_value = -1; /* UnsuccessfulOutcome_value */
/*--- End of included file: packet-lcsap-hf.c ---*/
-#line 79 "../../asn1/lcsap/packet-lcsap-template.c"
+#line 78 "../../asn1/lcsap/packet-lcsap-template.c"
/* Initialize the subtree pointers */
static int ett_lcsap = -1;
@@ -295,7 +294,7 @@ static gint ett_lcsap_SuccessfulOutcome = -1;
static gint ett_lcsap_UnsuccessfulOutcome = -1;
/*--- End of included file: packet-lcsap-ett.c ---*/
-#line 84 "../../asn1/lcsap/packet-lcsap-template.c"
+#line 83 "../../asn1/lcsap/packet-lcsap-template.c"
/* Global variables */
static guint32 ProcedureCode;
@@ -2219,7 +2218,7 @@ static int dissect_LCS_AP_PDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, pro
/*--- End of included file: packet-lcsap-fn.c ---*/
-#line 197 "../../asn1/lcsap/packet-lcsap-template.c"
+#line 196 "../../asn1/lcsap/packet-lcsap-template.c"
static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
@@ -2318,7 +2317,7 @@ proto_reg_handoff_lcsap(void)
/*--- End of included file: packet-lcsap-dis-tab.c ---*/
-#line 257 "../../asn1/lcsap/packet-lcsap-template.c"
+#line 256 "../../asn1/lcsap/packet-lcsap-template.c"
} else {
if (SctpPort != 0) {
dissector_delete_uint("sctp.port", SctpPort, lcsap_handle);
@@ -2800,7 +2799,7 @@ void proto_register_lcsap(void) {
"UnsuccessfulOutcome_value", HFILL }},
/*--- End of included file: packet-lcsap-hfarr.c ---*/
-#line 302 "../../asn1/lcsap/packet-lcsap-template.c"
+#line 301 "../../asn1/lcsap/packet-lcsap-template.c"
};
/* List of subtrees */
@@ -2856,7 +2855,7 @@ void proto_register_lcsap(void) {
&ett_lcsap_UnsuccessfulOutcome,
/*--- End of included file: packet-lcsap-ettarr.c ---*/
-#line 308 "../../asn1/lcsap/packet-lcsap-template.c"
+#line 307 "../../asn1/lcsap/packet-lcsap-template.c"
};
module_t *lcsap_module;
diff --git a/epan/dissectors/packet-ldap.c b/epan/dissectors/packet-ldap.c
index 7d28a2b30d..6927b1fc92 100644
--- a/epan/dissectors/packet-ldap.c
+++ b/epan/dissectors/packet-ldap.c
@@ -91,7 +91,6 @@
#include "config.h"
#include <string.h>
-#include <ctype.h>
#include <glib.h>
@@ -347,7 +346,7 @@ static int hf_ldap_graceAuthNsRemaining = -1; /* INTEGER_0_maxInt */
static int hf_ldap_error = -1; /* T_error */
/*--- End of included file: packet-ldap-hf.c ---*/
-#line 197 "../../asn1/ldap/packet-ldap-template.c"
+#line 196 "../../asn1/ldap/packet-ldap-template.c"
/* Initialize the subtree pointers */
static gint ett_ldap = -1;
@@ -419,7 +418,7 @@ static gint ett_ldap_PasswordPolicyResponseValue = -1;
static gint ett_ldap_T_warning = -1;
/*--- End of included file: packet-ldap-ett.c ---*/
-#line 209 "../../asn1/ldap/packet-ldap-template.c"
+#line 208 "../../asn1/ldap/packet-ldap-template.c"
static expert_field ei_ldap_exceeded_filter_length = EI_INIT;
static expert_field ei_ldap_too_many_filter_elements = EI_INIT;
@@ -3825,7 +3824,7 @@ static int dissect_PasswordPolicyResponseValue_PDU(tvbuff_t *tvb _U_, packet_inf
/*--- End of included file: packet-ldap-fn.c ---*/
-#line 891 "../../asn1/ldap/packet-ldap-template.c"
+#line 890 "../../asn1/ldap/packet-ldap-template.c"
static int dissect_LDAPMessage_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, ldap_conv_info_t *ldap_info) {
int offset = 0;
@@ -5741,7 +5740,7 @@ void proto_register_ldap(void) {
NULL, HFILL }},
/*--- End of included file: packet-ldap-hfarr.c ---*/
-#line 2238 "../../asn1/ldap/packet-ldap-template.c"
+#line 2237 "../../asn1/ldap/packet-ldap-template.c"
};
/* List of subtrees */
@@ -5815,7 +5814,7 @@ void proto_register_ldap(void) {
&ett_ldap_T_warning,
/*--- End of included file: packet-ldap-ettarr.c ---*/
-#line 2252 "../../asn1/ldap/packet-ldap-template.c"
+#line 2251 "../../asn1/ldap/packet-ldap-template.c"
};
/* UAT for header fields */
static uat_field_t custom_attribute_types_uat_fields[] = {
@@ -5981,7 +5980,7 @@ proto_reg_handoff_ldap(void)
/*--- End of included file: packet-ldap-dis-tab.c ---*/
-#line 2401 "../../asn1/ldap/packet-ldap-template.c"
+#line 2400 "../../asn1/ldap/packet-ldap-template.c"
}
diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c
index 6d10f0558f..c6d2dc564e 100644
--- a/epan/dissectors/packet-snmp.c
+++ b/epan/dissectors/packet-snmp.c
@@ -55,7 +55,6 @@
#include "config.h"
#include <string.h>
-#include <ctype.h>
#include <glib.h>
@@ -309,7 +308,7 @@ static int hf_snmp_priority = -1; /* INTEGER_M1_2147483647 */
static int hf_snmp_operation = -1; /* T_operation */
/*--- End of included file: packet-snmp-hf.c ---*/
-#line 235 "../../asn1/snmp/packet-snmp-template.c"
+#line 234 "../../asn1/snmp/packet-snmp-template.c"
/* Initialize the subtree pointers */
static gint ett_smux = -1;
@@ -349,7 +348,7 @@ static gint ett_snmp_SimpleOpen_U = -1;
static gint ett_snmp_RReqPDU_U = -1;
/*--- End of included file: packet-snmp-ett.c ---*/
-#line 251 "../../asn1/snmp/packet-snmp-template.c"
+#line 250 "../../asn1/snmp/packet-snmp-template.c"
static expert_field ei_snmp_failed_decrypted_data_pdu = EI_INIT;
static expert_field ei_snmp_decrypted_data_bad_formatted = EI_INIT;
@@ -3081,7 +3080,7 @@ static int dissect_SMUX_PDUs_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, prot
/*--- End of included file: packet-snmp-fn.c ---*/
-#line 1869 "../../asn1/snmp/packet-snmp-template.c"
+#line 1868 "../../asn1/snmp/packet-snmp-template.c"
guint
@@ -3903,7 +3902,7 @@ void proto_register_snmp(void) {
NULL, HFILL }},
/*--- End of included file: packet-snmp-hfarr.c ---*/
-#line 2426 "../../asn1/snmp/packet-snmp-template.c"
+#line 2425 "../../asn1/snmp/packet-snmp-template.c"
};
/* List of subtrees */
@@ -3943,7 +3942,7 @@ void proto_register_snmp(void) {
&ett_snmp_RReqPDU_U,
/*--- End of included file: packet-snmp-ettarr.c ---*/
-#line 2442 "../../asn1/snmp/packet-snmp-template.c"
+#line 2441 "../../asn1/snmp/packet-snmp-template.c"
};
static ei_register_info ei[] = {
{ &ei_snmp_failed_decrypted_data_pdu, { "snmp.failed_decrypted_data_pdu", PI_MALFORMED, PI_WARN, "Failed to decrypt encryptedPDU", EXPFILL }},