From 1b0694b79481643cb456d03e1be50a1b4f6ca591 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Tue, 3 Oct 2023 01:51:07 -0400 Subject: treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical --- backend/libinput/tablet_pad.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backend/libinput/tablet_pad.c') diff --git a/backend/libinput/tablet_pad.c b/backend/libinput/tablet_pad.c index d72896c0..2e74022a 100644 --- a/backend/libinput/tablet_pad.c +++ b/backend/libinput/tablet_pad.c @@ -22,8 +22,7 @@ static void add_pad_group_from_libinput(struct wlr_tablet_pad *pad, struct libinput_device *device, unsigned int index) { struct libinput_tablet_pad_mode_group *li_group = libinput_device_tablet_pad_get_mode_group(device, index); - struct wlr_tablet_pad_group *group = - calloc(1, sizeof(struct wlr_tablet_pad_group)); + struct wlr_tablet_pad_group *group = calloc(1, sizeof(*group)); if (!group) { wlr_log_errno(WLR_ERROR, "failed to allocate wlr_tablet_pad_group"); return; -- cgit v1.2.3