mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
wayland: cleanup registry_handle_global
The wl_registry object is already passed as a parameter. No need to create a temporary variable.
This commit is contained in:
parent
74d9504b65
commit
61e5670684
@ -558,13 +558,12 @@ static const struct wl_data_device_listener data_device_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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user