From b7a370c8209b695e6701d04e3064e45ccaacbbb6 Mon Sep 17 00:00:00 2001 From: Sara Date: Sat, 11 Nov 2023 12:57:01 +0100 Subject: [PATCH] marked _internal_open_ functions inline --- src/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input.c b/src/input.c index 55f1817..8c6d162 100644 --- a/src/input.c +++ b/src/input.c @@ -4,7 +4,7 @@ static List _devices; -static +static inline void _internal_open_keyboard() { InputDevice* keyboard = malloc(sizeof(InputDevice)); *keyboard = (InputDevice){ @@ -19,7 +19,7 @@ void _internal_open_keyboard() { LOG_INFO("registered keyboard %d", keyboard->id); } -static +static inline void _internal_open_controller(size_t id) { InputDevice* device = malloc(sizeof(InputDevice)); *device = (InputDevice) {