From e4b73d90d7ba167d44abcf6ca54a4dbe3355710c Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 1 Apr 2022 18:40:42 +0800 Subject: [PATCH] net/local: change 255 to UINT8_MAX Signed-off-by: Xiang Xiao --- net/local/local_listen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/local/local_listen.c b/net/local/local_listen.c index 9ab91536ca..c6ffbe85cb 100644 --- a/net/local/local_listen.c +++ b/net/local/local_listen.c @@ -96,9 +96,9 @@ int local_listen(FAR struct socket *psock, int backlog) /* Set the backlog value */ - if (backlog > 255) + if (backlog > UINT8_MAX) { - backlog = 255; + backlog = UINT8_MAX; } server->u.server.lc_backlog = backlog;