From e448a9a4a976a6bc3091e3f22309ae3e6c089351 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Mon, 20 Jul 2015 11:34:47 +0200 Subject: [PATCH] err, debug: add missing ERR_ALREADY to lwip_strerr() When ERR_ALREADY was added other error codes were renumbered. The strerr function was not updated so it returned incorrect data for ERR_CONN - ERR_IF. --- src/api/err.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/api/err.c b/src/api/err.c index e9701018..d8f0e6ca 100644 --- a/src/api/err.c +++ b/src/api/err.c @@ -50,13 +50,14 @@ static const char *err_strerr[] = { "Illegal value.", /* ERR_VAL -6 */ "Operation would block.", /* ERR_WOULDBLOCK -7 */ "Address in use.", /* ERR_USE -8 */ - "Already connected.", /* ERR_ISCONN -9 */ - "Not connected.", /* ERR_CONN -10 */ - "Connection aborted.", /* ERR_ABRT -11 */ - "Connection reset.", /* ERR_RST -12 */ - "Connection closed.", /* ERR_CLSD -13 */ - "Illegal argument.", /* ERR_ARG -14 */ - "Low-level netif error.", /* ERR_IF -15 */ + "Already connecting.", /* ERR_ALREADY -9 */ + "Already connected.", /* ERR_ISCONN -10 */ + "Not connected.", /* ERR_CONN -11 */ + "Connection aborted.", /* ERR_ABRT -12 */ + "Connection reset.", /* ERR_RST -13 */ + "Connection closed.", /* ERR_CLSD -14 */ + "Illegal argument.", /* ERR_ARG -15 */ + "Low-level netif error.", /* ERR_IF -16 */ }; /**