Skip to contentSkip to conversation

multipathd: fix -Wpointer-to-int-cast warning in uxlsnr

PATCH New Martin Wilck 1 participant 1 message Mar 6, 2018 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipathd: fix -Wpointer-to-int-cast warning in uxlsnr

Fixes "multipathd: release uxsocket and resource when cancel thread"
---
 multipathd/uxlsnr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
multipathd/uxlsnr.c +2 -2
index 0531061912b3..cdafd82943e7 100644
@@ -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;
Signature · 1 line
2.16.1