Remove a few needless allocation casts

Mon, 21 Dec 2015 15:12:18 -0500

author
Michael McConville <mmcco@mykolab.com>
date
Mon, 21 Dec 2015 15:12:18 -0500
changeset 37427
b7ca07c50ef1
parent 37426
6fd4989b77e4
child 37428
9e56dcafff40

Remove a few needless allocation casts

pidgin/plugins/gestures/stroke.c file | annotate | diff | comparison | revisions
--- a/pidgin/plugins/gestures/stroke.c	Mon Dec 21 15:05:58 2015 -0500
+++ b/pidgin/plugins/gestures/stroke.c	Mon Dec 21 15:12:18 2015 -0500
@@ -197,7 +197,7 @@
 #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 @@
 	  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 @@
 	  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));
 	}
       }
 

mercurial