kismet: use cast in ws_strtou.
authorDario Lombardo <lomato@gmail.com>
Fri, 30 Sep 2016 07:35:30 +0000 (09:35 +0200)
committerDario Lombardo <lomato@gmail.com>
Fri, 30 Sep 2016 13:57:51 +0000 (13:57 +0000)
Fix the warning:

packet-kismet.c: In function 'dissect_kismet':
packet-kismet.c:242:58: error: passing argument 3 of 'ws_strtou64' from incompatible pointer type [-Werror]
       if (ws_strtou64(format_text(line, tokenlen), NULL, &t.secs)) {
                                                          ^
In file included from packet-kismet.c:34:0:
../../wsutil/strtoi.h:49:24: note: expected 'guint64 *' but argument is of type 'time_t *'
 WS_DLL_PUBLIC gboolean ws_strtou64(const gchar* str, const gchar** endptr, guint64* cint);

Change-Id: Ifd31de22db22f39f78359cc9432eb7da187f73a6
Reviewed-on: https://code.wireshark.org/review/17990
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Uli Heilmeier <openid@heilmeier.eu>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
epan/dissectors/packet-kismet.c

index f8388d91b58762eb79e59af2ef02dda4dbea1109..f86cbe5f066389131c2b66903f166f107c19eb9e 100644 (file)
@@ -239,7 +239,7 @@ dissect_kismet(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void * da
                                                tokenlen = get_token_len(line, line + linelen, &next_token);
 
                                                /* Convert form ascii to nstime */
-                                               if (ws_strtou64(format_text(line, tokenlen), NULL, &t.secs)) {
+                                               if (ws_strtou64(format_text(line, tokenlen), NULL, (guint64*)&t.secs)) {
 
                                                        /*
                                                         * Format ascii representation of time