File descriptors are 'int' not unsigned release-2.x.y

Tue, 07 Apr 2020 23:25:28 +0100

author
David Woodhouse <dwmw2@infradead.org>
date
Tue, 07 Apr 2020 23:25:28 +0100
branch
release-2.x.y
changeset 40397
bf800190c67e
parent 40396
8c751a7fa2dd
child 40398
f3c12f0656c5

File descriptors are 'int' not unsigned

pidgin/gtkrequest.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkrequest.c	Tue Apr 07 21:02:55 2020 +0100
+++ b/pidgin/gtkrequest.c	Tue Apr 07 23:25:28 2020 +0100
@@ -1855,7 +1855,7 @@
 	node_id = g_strdup_printf("%u",
 				  GPOINTER_TO_UINT(g_object_get_data(info, "node-id")));
 	g_object_set(ret,"path", node_id, "do-timestamp", TRUE,
-		     "fd", GPOINTER_TO_UINT(g_object_get_data(info, "fd")),
+		     "fd", GPOINTER_TO_INT(g_object_get_data(info, "fd")),
 		     NULL);
 	g_free(node_id);
 
@@ -1904,7 +1904,7 @@
 				    "type", PURPLE_MEDIA_ELEMENT_VIDEO | PURPLE_MEDIA_ELEMENT_SRC |
 				    PURPLE_MEDIA_ELEMENT_ONE_SRC,
 				    "create-cb", create_pipewiresrc_cb, NULL);
-		g_object_set_data_full(info, "fd", GUINT_TO_POINTER(pipewire_fd), close_pipewire_fd);
+		g_object_set_data_full(info, "fd", GINT_TO_POINTER(pipewire_fd), close_pipewire_fd);
 		g_object_set_data(info, "node-id", GUINT_TO_POINTER(data->u.screenshare.node_id));
 		/* When the DBus connection closes, the session ends. So keep it attached
 		   to the PurpleMediaElementInfo, which in turn should be attached to

mercurial