mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 12:58:29 +08:00
net/local: change 255 to UINT8_MAX
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user