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 23:14:15 +08:00
committed by Xiang Xiao
parent fb912da252
commit e4b73d90d7
+2 -2
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;