diff options
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/wg_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/unix/wg_user.c b/sysdep/unix/wg_user.c index 447e4ecd..62c53412 100644 --- a/sysdep/unix/wg_user.c +++ b/sysdep/unix/wg_user.c @@ -66,7 +66,7 @@ void user_tx_hook(struct birdsock *bs) { log(L_TRACE "WG: TX %p %d", bs, bs->tpos - bs->ttx); - uint size = (uint)bs->data; + uint size = (uintptr_t)bs->data; if (size > 0) { @@ -277,7 +277,7 @@ wg_user_set_device(struct pool *pool, return -1; } - sock->data = (void*)size; + sock->data = (void*)(uintptr_t)size; int res = sk_connect_unix(sock, path, pathlen); log(L_TRACE "WG: socket %s %d %d %d %s %d %s %d", res<0?strerror(errno):NULL, res, res<0?errno:0, sock->fd, ifname, path[0], path + 1, pathlen); |