mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-26 08:02:51 +00:00
One more compile fix in err.c
This commit is contained in:
parent
86a92543de
commit
ad3530ee10
@ -95,7 +95,7 @@ static const char *err_strerr[] = {
|
||||
const char *
|
||||
lwip_strerr(err_t err)
|
||||
{
|
||||
if ((err > 0) || (-err >= LWIP_ARRAYSIZE(err_strerr))) {
|
||||
if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_strerr))) {
|
||||
return "Unknown error.";
|
||||
}
|
||||
return err_strerr[-err];
|
||||
@ -106,7 +106,7 @@ lwip_strerr(err_t err)
|
||||
int
|
||||
err_to_errno(err_t err)
|
||||
{
|
||||
if ((err > 0) || (-err >= LWIP_ARRAYSIZE(err_strerr))) {
|
||||
if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_strerr))) {
|
||||
return EIO;
|
||||
}
|
||||
return err_to_errno_table[-err];
|
||||
|
Loading…
Reference in New Issue
Block a user