diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-09 11:04:50 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-19 12:26:24 +0200 |
commit | 83c94ba6a3d97569109ef52cbab17edd06e323d0 (patch) | |
tree | d06fb83c503fc71ad94d80c4bc3931d3f40d6b68 | |
parent | c7cd14ee2923f79caa493fa7c0bf459e8b0ac0a7 (diff) | |
download | neard-83c94ba6a3d97569109ef52cbab17edd06e323d0.tar.gz |
nfctool: fix adapter_get_devices() cast-function-type
Fix on GCC v10:
tools/nfctool/adapter.c: In function ‘adapter_all_get_devices’:
tools/nfctool/adapter.c:55:28: error: cast between incompatible function types from ‘void (*)(struct nfc_adapter *)’ to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
55 | g_slist_foreach(adapters, (GFunc)adapter_get_devices, NULL);
| ^
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
-rw-r--r-- | tools/nfctool/adapter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nfctool/adapter.c b/tools/nfctool/adapter.c index beaee53..5a0c34a 100644 --- a/tools/nfctool/adapter.c +++ b/tools/nfctool/adapter.c @@ -36,7 +36,7 @@ static GSList *adapters; static struct nfc_adapter *selected_adapter; -static void adapter_get_devices(struct nfc_adapter *adapter) +static void adapter_get_devices(struct nfc_adapter *adapter, gpointer user_data) { if (adapter->rf_mode == NFC_RF_INITIATOR) nl_get_targets(adapter); |