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;