fixed compiler warning "initialization dircards qualifiers from pointer target type"

This commit is contained in:
goldsimon
2007-03-06 07:28:22 +00:00
parent ddf0982d0f
commit 7115975212
3 changed files with 15 additions and 7 deletions

View File

@@ -34,7 +34,7 @@
#ifdef LWIP_DEBUG
static char *err_strerr[] = {"Ok.",
static const char *err_strerr[] = {"Ok.",
"Out of memory error.",
"Buffer error.",
"Connection aborted.",
@@ -48,7 +48,7 @@ static char *err_strerr[] = {"Ok.",
};
char *
const char *
lwip_strerr(err_t err)
{
return err_strerr[-err];