diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-09 11:10:31 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-19 12:26:24 +0200 |
commit | 43ebc502616640cfd2aa42c83191c7f7b57ad655 (patch) | |
tree | d799c7a302e280e1be658cf6562aa15aafe163c5 | |
parent | 183dbc4055be868e2148aaca2405da3a7152d062 (diff) | |
download | neard-43ebc502616640cfd2aa42c83191c7f7b57ad655.tar.gz |
nfctool: fix nfctool_send_dep_link_up() cast-function-type
Fix on GCC v10:
tools/nfctool/main.c: In function ‘nfctool_targets_found’:
tools/nfctool/main.c:294:5: error: cast between incompatible function types from ‘void (*)(guint32, guint32)’ {aka ‘void (*)(unsigned int, unsigned int)’} to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
294 | (GFunc)nfctool_send_dep_link_up,
| ^
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
-rw-r--r-- | tools/nfctool/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nfctool/main.c b/tools/nfctool/main.c index c48bf09..282df51 100644 --- a/tools/nfctool/main.c +++ b/tools/nfctool/main.c @@ -259,9 +259,9 @@ static int nfctool_snl(void) return nfctool_snl_send_request(adapter); } -static void nfctool_send_dep_link_up(guint32 target_idx, guint32 adapter_idx) +static void nfctool_send_dep_link_up(gpointer target_idx, gpointer adapter_idx) { - nl_send_dep_link_up(adapter_idx, target_idx); + nl_send_dep_link_up(GPOINTER_TO_INT(adapter_idx), GPOINTER_TO_INT(target_idx)); } static int nfctool_targets_found(guint32 adapter_idx) |