aboutsummaryrefslogtreecommitdiffstats
path: root/ui/text_import.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2019-01-23 20:03:59 +0100
committerAnders Broman <a.broman58@gmail.com>2019-01-23 21:17:14 +0000
commit3c1342291f1e93c5fb1100f1aa6750db8e293ee4 (patch)
tree11272b2b8ae72a37fa0665a4faa8eda25e537934 /ui/text_import.c
parente774aa6044373302ffa213e5d0be2ced14a3d5de (diff)
text import: cleanup type usage
The glib gboolean and integer types are used interchangably, while a proper use is easily achievable. Change-Id: I8943bb90c9f23c0e58c296ad3b45153d0364953c Signed-off-by: Jaap Keuter <jaap.keuter@xs4all.nl> Reviewed-on: https://code.wireshark.org/review/31708 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/text_import.c')
-rw-r--r--ui/text_import.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/text_import.c b/ui/text_import.c
index af55495610..191e4547de 100644
--- a/ui/text_import.c
+++ b/ui/text_import.c
@@ -122,29 +122,29 @@
static int debug = 0;
/* Dummy Ethernet header */
-static int hdr_ethernet = FALSE;
+static gboolean hdr_ethernet = FALSE;
static guint32 hdr_ethernet_proto = 0;
/* Dummy IP header */
-static int hdr_ip = FALSE;
+static gboolean hdr_ip = FALSE;
static guint hdr_ip_proto = 0;
/* Dummy UDP header */
-static int hdr_udp = FALSE;
+static gboolean hdr_udp = FALSE;
static guint32 hdr_dest_port = 0;
static guint32 hdr_src_port = 0;
/* Dummy TCP header */
-static int hdr_tcp = FALSE;
+static gboolean hdr_tcp = FALSE;
/* Dummy SCTP header */
-static int hdr_sctp = FALSE;
+static gboolean hdr_sctp = FALSE;
static guint32 hdr_sctp_src = 0;
static guint32 hdr_sctp_dest = 0;
static guint32 hdr_sctp_tag = 0;
/* Dummy DATA chunk header */
-static int hdr_data_chunk = FALSE;
+static gboolean hdr_data_chunk = FALSE;
static guint8 hdr_data_chunk_type = 0;
static guint8 hdr_data_chunk_bits = 3;
static guint32 hdr_data_chunk_tsn = 0;
@@ -153,7 +153,7 @@ static guint16 hdr_data_chunk_ssn = 0;
static guint32 hdr_data_chunk_ppid = 0;
/* Dummy ExportPdu header */
-static int hdr_export_pdu = FALSE;
+static gboolean hdr_export_pdu = FALSE;
static gchar* hdr_export_pdu_payload = NULL;
static gboolean has_direction = FALSE;