mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-02 12:52:10 +00:00
fixed bug #39882 No function shall set errno to 0
This commit is contained in:
parent
c1dc1a20d6
commit
515e4b9187
@ -96,6 +96,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2014-02-20: Simon Goldschmidt
|
||||||
|
* sockets.c: fixed bug #39882 No function shall set errno to 0
|
||||||
|
|
||||||
2014-02-20: Simon Goldschmidt
|
2014-02-20: Simon Goldschmidt
|
||||||
* mib_structs.c: fixed bug #40050 SNMP problem with MIB arrays > 255
|
* mib_structs.c: fixed bug #40050 SNMP problem with MIB arrays > 255
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ static const int err_to_errno_table[] = {
|
|||||||
|
|
||||||
#ifdef ERRNO
|
#ifdef ERRNO
|
||||||
#ifndef set_errno
|
#ifndef set_errno
|
||||||
#define set_errno(err) errno = (err)
|
#define set_errno(err) do { if (err) { errno = (err); } } while(0)
|
||||||
#endif
|
#endif
|
||||||
#else /* ERRNO */
|
#else /* ERRNO */
|
||||||
#define set_errno(err)
|
#define set_errno(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user