From 1e59999d0c70bb76d4f5ab93e441ef1d9c0e6f95 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Wed, 7 Feb 2018 16:02:14 +0800 Subject: [PATCH] Optimize code Signed-off-by: Jianhui Zhao --- src/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.c b/src/client.c index 4c1e4a9..0190e11 100755 --- a/src/client.c +++ b/src/client.c @@ -446,7 +446,7 @@ void uh_client_read_cb(struct uh_client *cl) } while(1); } -static void client_ustream_read_cb(struct ustream *s, int bytes) +static inline void client_ustream_read_cb(struct ustream *s, int bytes) { struct uh_client *cl = container_of(s, struct uh_client, sfd.stream); uh_client_read_cb(cl); @@ -475,7 +475,7 @@ void uh_client_notify_state(struct uh_client *cl) client_free(cl); } -static void client_notify_state(struct ustream *s) +static inline void client_notify_state(struct ustream *s) { struct uh_client *cl = container_of(s, struct uh_client, sfd.stream);