/pidgin/main: b7ca07c50ef1: Remove a few needless allocation casts

Michael McConville <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: b7ca07c50ef1589b117e049a3ce4760d40c76ee9
Author:	 Michael McConville <[email protected]>
Date:	 2015-12-21 15:12 -0500
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/b7ca07c50ef1

Description:

Remove a few needless allocation casts

diffstat:

 pidgin/plugins/gestures/stroke.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff --git a/pidgin/plugins/gestures/stroke.c b/pidgin/plugins/gestures/stroke.c
--- a/pidgin/plugins/gestures/stroke.c
+++ b/pidgin/plugins/gestures/stroke.c
@@ -197,7 +197,7 @@ void
 #endif
 
   if (metrics->point_count < GSTROKE_MAX_POINTS) {
-    new_point_p = (p_point) g_malloc (sizeof (struct s_point));
+    new_point_p = g_malloc(sizeof (struct s_point));
 
     if (metrics->pointList == NULL) {
 
@@ -239,7 +239,7 @@ void
 	  if (((gint) iy) > metrics->max_y) metrics->max_y = (gint) iy;
 	  metrics->point_count++;
 
-	  new_point_p = (p_point) malloc (sizeof(struct s_point));
+	  new_point_p = malloc(sizeof(struct s_point));
 	}
       } else {  /* same thing, but for dely larger than delx case... */
 	ix = LAST_POINT->x;
@@ -263,7 +263,7 @@ void
 	  if (((gint) iy) > metrics->max_y) metrics->max_y = (gint) iy;
 	  metrics->point_count++;
 
-	  new_point_p = (p_point) malloc (sizeof(struct s_point));
+	  new_point_p = malloc(sizeof(struct s_point));
 	}
       }
 

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.