Fixes: "multipathd: release uxsocket and resource when cancel thread" Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- multipathd/uxlsnr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multipathd/uxlsnr.c b/multipathd/uxlsnr.c index 0531061912b3..cdafd82943e7 100644 --- a/multipathd/uxlsnr.c +++ b/multipathd/uxlsnr.c @@ -148,7 +148,7 @@ void uxsock_cleanup(void *arg) { struct client *client_loop; struct client *client_tmp; - int ux_sock = (int)arg; + long ux_sock = (long)arg; close(ux_sock); @@ -167,7 +167,7 @@ void uxsock_cleanup(void *arg) */ void * uxsock_listen(uxsock_trigger_fn uxsock_trigger, void * trigger_data) { - int ux_sock; + long ux_sock; int rlen; char *inbuf; char *reply; -- 2.16.1 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel