net/local: change 255 to UINT8_MAX

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-04-01 18:40:42 +08:00 committed by Xiang Xiao
parent fb912da252
commit e4b73d90d7
1 changed files with 2 additions and 2 deletions

View File

@ -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;