Wireshark-commits: [Wireshark-commits] master ac1c1c3: extcap.c: fix compilation with gcc 8

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 02 May 2018 19:33:40 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=ac1c1c3e58532079daff6b807b7e12d5ba17199d
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

ac1c1c3 by Pascal Quantin (pascal.quantin@xxxxxxxxx):

    extcap.c: fix compilation with gcc 8
    
    extcap.c:228:37: error: cast between incompatible function types from ‘void (*)(iface_toolbar_value *)’ {aka ‘void (*)(struct _iface_toolbar_value *)’} to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
    extcap.c:246:39: error: cast between incompatible function types from ‘void (*)(iface_toolbar_control *)’ {aka ‘void (*)(struct _iface_toolbar_control *)’} to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
    extcap.c:521:32: error: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
    extcap.c:1440:35: error: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
    
    Change-Id: I2422e9b59c288907882c9ffd57cbae12011f7832
    Reviewed-on: https://code.wireshark.org/review/27264
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  acdda66   extcap-base.c: fix compilation with gcc 8
    adds  ac1c1c3   extcap.c: fix compilation with gcc 8


Summary of changes:
 extcap.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)