diff options
Diffstat (limited to 'examples/relative-pointer-unstable-v1.c')
-rw-r--r-- | examples/relative-pointer-unstable-v1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/relative-pointer-unstable-v1.c b/examples/relative-pointer-unstable-v1.c index 7d370bba..6722a5b9 100644 --- a/examples/relative-pointer-unstable-v1.c +++ b/examples/relative-pointer-unstable-v1.c @@ -437,7 +437,7 @@ int main(int argc, char **argv) { /* Initialize EGL context */ - struct egl_info *e = calloc(1, sizeof(struct egl_info)); + struct egl_info *e = calloc(1, sizeof(*e)); e->width = e->height = 512; egl_init(display); @@ -465,7 +465,7 @@ int main(int argc, char **argv) { /* Setup global state and render */ - struct window *w = calloc(1, sizeof(struct window)); + struct window *w = calloc(1, sizeof(*w)); w->egl_info = e; draw_init(e); |