[PATCH weston] screenshooter: remove useless cast

Bryce Harrington bryce at osg.samsung.com
Mon Feb 2 14:59:23 PST 2015


On Mon, Feb 02, 2015 at 01:03:23PM -0600, Derek Foreman wrote:
> Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>

Thanks, applied:
   7424c81..aff7c33  master -> master

> ---
>  src/screenshooter.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/src/screenshooter.c b/src/screenshooter.c
> index c98e2f9..4e32db5 100644
> --- a/src/screenshooter.c
> +++ b/src/screenshooter.c
> @@ -558,8 +558,7 @@ weston_recorder_destroy(struct weston_recorder *recorder)
>  static void
>  recorder_binding(struct weston_seat *seat, uint32_t time, uint32_t key, void *data)
>  {
> -	struct weston_seat *ws = (struct weston_seat *) seat;
> -	struct weston_compositor *ec = ws->compositor;
> +	struct weston_compositor *ec = seat->compositor;
>  	struct weston_output *output;
>  	struct wl_listener *listener = NULL;
>  	struct weston_recorder *recorder;
> -- 
> 2.1.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list