mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical
This commit is contained in:
parent
a09d649439
commit
1b0694b794
99 changed files with 224 additions and 355 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue