pidgin/pidgin

Remove a few needless allocation casts

2015-12-21, Michael McConville
b7ca07c50ef1
Parents 6fd4989b77e4
Children 9e56dcafff40
Remove a few needless allocation casts
--- 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));
}
}