treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical

This commit is contained in:
Alexander Orzechowski 2023-10-03 01:51:07 -04:00
parent a09d649439
commit 1b0694b794
99 changed files with 224 additions and 355 deletions

View file

@ -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);