diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-18 14:44:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 14:44:46 -0400 |
commit | 3693fae0c44d83cab2c701bd44b80d8f6242781e (patch) | |
tree | 407d120898ff0a4c64de9a2d180ad07bd0d67e36 /backend/headless/input_device.c | |
parent | 9288c827aaf4ae8acac7a105f223dc612822b76d (diff) | |
parent | 139a905924e9c6cd22613dfbbe73c4642c993e41 (diff) |
Merge pull request #1248 from emersion/assert-all-the-things
Assert all the things!
Diffstat (limited to 'backend/headless/input_device.c')
-rw-r--r-- | backend/headless/input_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/headless/input_device.c b/backend/headless/input_device.c index a2474aeb..ba251dd7 100644 --- a/backend/headless/input_device.c +++ b/backend/headless/input_device.c @@ -1,3 +1,4 @@ +#include <assert.h> #include <stdlib.h> #include <wlr/interfaces/wlr_input_device.h> #include <wlr/interfaces/wlr_keyboard.h> @@ -18,7 +19,7 @@ bool wlr_input_device_is_headless(struct wlr_input_device *wlr_dev) { struct wlr_input_device *wlr_headless_add_input_device( struct wlr_backend *wlr_backend, enum wlr_input_device_type type) { struct wlr_headless_backend *backend = - (struct wlr_headless_backend *)wlr_backend; + headless_backend_from_backend(wlr_backend); struct wlr_headless_input_device *device = calloc(1, sizeof(struct wlr_headless_input_device)); |