summaryrefslogtreecommitdiff
path: root/wiretap/k12text.l
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-12-14 18:12:32 +0000
committerGerald Combs <gerald@wireshark.org>2013-12-14 18:12:32 +0000
commit75f1073fe642ffcfd90c01a8777143d70129ed22 (patch)
tree90d7b9cb2417282f7e05456abeb6b4eff3ccaef3 /wiretap/k12text.l
parent8fde85216a3bad3fd581f5c3503ac232dcb45555 (diff)
downloadwireshark-75f1073fe642ffcfd90c01a8777143d70129ed22.tar.gz
Cast away shorten-64-to-32 warnings.
svn path=/trunk/; revision=54101
Diffstat (limited to 'wiretap/k12text.l')
-rw-r--r--wiretap/k12text.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/wiretap/k12text.l b/wiretap/k12text.l
index 9fd29a1662..56ea91b684 100644
--- a/wiretap/k12text.l
+++ b/wiretap/k12text.l
@@ -103,11 +103,11 @@ static gboolean ok_frame;
static FILE_T yy_fh;
#define KERROR(text) do { error_str = g_strdup(text); yyterminate(); } while(0)
-#define SET_HOURS(text) g_h = strtoul(text,NULL,10)
-#define SET_MINUTES(text) g_m = strtoul(text,NULL,10)
-#define SET_SECONDS(text) g_s = strtoul(text,NULL,10)
-#define SET_MS(text) g_ms = strtoul(text,NULL,10)
-#define SET_NS(text) g_ns = strtoul(text,NULL,10)
+#define SET_HOURS(text) g_h = (guint) strtoul(text,NULL,10)
+#define SET_MINUTES(text) g_m = (guint) strtoul(text,NULL,10)
+#define SET_SECONDS(text) g_s = (guint) strtoul(text,NULL,10)
+#define SET_MS(text) g_ms = (guint) strtoul(text,NULL,10)
+#define SET_NS(text) g_ns = (guint) strtoul(text,NULL,10)
#define ADD_BYTE(text) do {if (ii >= WTAP_MAX_PACKET_SIZE) {KERROR("frame too large");} bb[ii++] = (guint8)strtoul(text,NULL,16); } while(0)
#define FINALIZE_FRAME() finalize_frame()
/*~ #define ECHO*/