From cb084964187af430394f75f32df1015e2c35e076 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Thu, 24 Mar 2016 16:40:14 +0100 Subject: ciscodump: fix OSX compilation error. Change-Id: I65d0c5bc6178ef3c2a7e9d5cf8e81d985f9d555a Reviewed-on: https://code.wireshark.org/review/14613 Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte --- extcap/ciscodump.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extcap') diff --git a/extcap/ciscodump.c b/extcap/ciscodump.c index 132665e779..97965d0bda 100644 --- a/extcap/ciscodump.c +++ b/extcap/ciscodump.c @@ -198,8 +198,8 @@ static int parse_line(char* packet _U_, unsigned* offset, char* line, int status { char** parts; char** part; - int value; - guint64 size; + guint32 value; + size_t size; if (strlen(line) <= 1) { if (status == CISCODUMP_PARSER_IN_PACKET) @@ -227,10 +227,10 @@ static int parse_line(char* packet _U_, unsigned* offset, char* line, int status part = parts; while(*part) { if (strlen(*part) > 1) { - value = htonl(strtoul(*part, NULL, 16)); + value = (guint32)htonl(strtoul(*part, NULL, 16)); size = strlen(*part) / 2; memcpy(packet + *offset, &value, size); - *offset += size; + *offset += (guint32)size; } part++; } -- cgit v1.2.3