diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2018-05-02 18:29:56 +0200 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-05-02 17:53:40 +0000 |
commit | 966c5957822a974ddd4f0558db0eccbbb7afe290 (patch) | |
tree | 084b6792757f5714b3ab10994c428058d8bc8e10 /epan/dissectors/packet-gtp.c | |
parent | 131eb5593bc48112abf671aa098abcb2d27bcb2f (diff) |
GTP: fix compilation with gcc 8
error: cast between incompatible function types from ‘void (*)(const void *, void *, void *)’ to ‘gboolean (*)(const void *, void *, void *)’ {aka ‘int (*)(const void *, void *, void *)’} [-Werror=cast-function-type]
Change-Id: If93eb9a4f38b622ae5dfaf9ed1e2c3d257141105
Reviewed-on: https://code.wireshark.org/review/27260
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-gtp.c')
-rw-r--r-- | epan/dissectors/packet-gtp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gtp.c b/epan/dissectors/packet-gtp.c index 924fc9a04c..c0e82bbe1f 100644 --- a/epan/dissectors/packet-gtp.c +++ b/epan/dissectors/packet-gtp.c @@ -1898,7 +1898,7 @@ get_frame(address ip, guint32 teid, guint32 *frame) { return 0; } -static void +static gboolean call_foreach_ip(const void *key _U_, void *value, void *data){ wmem_list_frame_t * elem; wmem_list_t *info_list = (wmem_list_t *)value; @@ -1921,12 +1921,14 @@ call_foreach_ip(const void *key _U_, void *value, void *data){ elem = wmem_list_frame_next(elem); } } + + return FALSE; } void remove_frame_info(guint32 *f) { /* For each ip node */ - wmem_tree_foreach(frame_tree, (wmem_foreach_func)call_foreach_ip, (void *)f); + wmem_tree_foreach(frame_tree, call_foreach_ip, (void *)f); } void |