Mon, 21 Dec 2015 15:12:18 -0500
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)); } }