Fix suspicious type casts.

Wed, 02 Oct 2019 06:25:16 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Wed, 02 Oct 2019 06:25:16 -0400
changeset 39914
d685c3015215
parent 39913
ce96d4639dc7
child 39915
7b19c6362c4e

Fix suspicious type casts.

libpurple/protocols/novell/novell.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/novell/novell.c	Wed Oct 02 06:21:41 2019 -0400
+++ b/libpurple/protocols/novell/novell.c	Wed Oct 02 06:25:16 2019 -0400
@@ -803,8 +803,8 @@
 
 		} else {
 			rc = nm_send_get_details(user, who,
-									 _get_details_resp_add_privacy_item,
-									 (gpointer)FALSE);
+			                         _get_details_resp_add_privacy_item,
+			                         GINT_TO_POINTER(FALSE));
 			_check_for_disconnect(user, rc);
 		}
 	} else {
@@ -857,8 +857,8 @@
 
 		} else {
 			rc = nm_send_get_details(user, who,
-									 _get_details_resp_add_privacy_item,
-									 (gpointer)TRUE);
+			                         _get_details_resp_add_privacy_item,
+			                         GINT_TO_POINTER(TRUE));
 			_check_for_disconnect(user, rc);
 		}
 
@@ -3102,8 +3102,9 @@
 	if (strchr(who, '.')) {
 		const char *dn = nm_lookup_dn(user, who);
 		if (dn == NULL) {
-			rc = nm_send_get_details(user, who, _get_details_send_privacy_create,
-									 (gpointer)TRUE);
+			rc = nm_send_get_details(user, who,
+			                         _get_details_send_privacy_create,
+			                         GINT_TO_POINTER(TRUE));
 			_check_for_disconnect(user, rc);
 			return;
 		} else {
@@ -3146,8 +3147,9 @@
 	if (strchr(who, '.')) {
 		const char *dn = nm_lookup_dn(user, who);
 		if (dn == NULL) {
-			rc = nm_send_get_details(user, who, _get_details_send_privacy_create,
-									 (gpointer)FALSE);
+			rc = nm_send_get_details(user, who,
+			                         _get_details_send_privacy_create,
+			                         GINT_TO_POINTER(FALSE));
 			_check_for_disconnect(user, rc);
 			return;
 		} else {

mercurial