kismet: use cast in ws_strtou.
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>
This commit is contained in:
parent
c5655dcfbf
commit
53c91974c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue