summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2014-01-08 16:21:49 +0100
committerwm4 <wm4@nowhere>2014-01-15 20:49:57 +0100
commit574a2484c151fff55123c7ea19a22a351b5f3837 (patch)
tree7350ff8adcc8fd91e4e3da6a6302a9d3abd81c2c
parentf5b92bee5e235008de9ef6a3fddfbc298f4d853e (diff)
downloadmpv-574a2484c151fff55123c7ea19a22a351b5f3837.tar.bz2
mpv-574a2484c151fff55123c7ea19a22a351b5f3837.tar.xz
wayland: cleanup registry_handle_global
The wl_registry object is already passed as a parameter. No need to create a temporary variable.
-rw-r--r--video/out/wayland_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 737d30582d..9c703e3546 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -464,13 +464,12 @@ static const struct wl_seat_listener seat_listener = {
};
static void registry_handle_global (void *data,
- struct wl_registry *registry,
+ struct wl_registry *reg,
uint32_t id,
const char *interface,
uint32_t version)
{
struct vo_wayland_state *wl = data;
- struct wl_registry *reg = wl->display.registry;
if (strcmp(interface, "wl_compositor") == 0) {