From 391fe2681e61a00ecbae62d63a595ea40c382b3b Mon Sep 17 00:00:00 2001 From: MacRsh Date: Sun, 21 Jan 2024 18:06:49 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8F=8F=E8=BF=B0=E7=AC=A6=E5=88=86=E9=85=8D?= =?UTF-8?q?=E5=92=8C=E9=87=8A=E6=94=BE=E5=87=BD=E6=95=B0=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=86=85=E8=81=94=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/device.c b/source/device.c index b7b1c38..8eebd3f 100644 --- a/source/device.c +++ b/source/device.c @@ -594,7 +594,7 @@ static struct mr_desc #define MR_DESC_CHECK(desc) #endif /* MR_USING_DESC_CHECK */ -static int desc_allocate(const char *path) +MR_INLINE int desc_allocate(const char *path) { int desc = -1; @@ -626,7 +626,7 @@ static int desc_allocate(const char *path) return desc; } -static void desc_free(int desc) +MR_INLINE void desc_free(int desc) { if (desc >= 0 && desc < MR_CFG_DESC_MAX) {