net/local: change 255 to UINT8_MAX
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
fb912da252
commit
e4b73d90d7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue