From 6f93a8f091cefa1c2be7152f45cb93c3457dc9ea Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 26 Jun 2007 17:38:52 +0000 Subject: [PATCH] Set the err_to_errno_table to be const --- src/api/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index e79fec85..1aa93841 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -90,7 +90,7 @@ static void event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len static void lwip_getsockopt_internal(void *arg); static void lwip_setsockopt_internal(void *arg); -static int err_to_errno_table[] = { +static const int err_to_errno_table[] = { 0, /* ERR_OK 0 No error, everything OK. */ ENOMEM, /* ERR_MEM -1 Out of memory error. */ ENOBUFS, /* ERR_BUF -2 Buffer error. */