Browse Source

fixed bug #39882 No function shall set errno to 0

STABLE-2_1_x
Simon Goldschmidt 12 years ago
parent
commit
515e4b9187
  1. 3
      CHANGELOG
  2. 2
      src/api/sockets.c

3
CHANGELOG

@ -96,6 +96,9 @@ HISTORY
++ Bugfixes:
2014-02-20: Simon Goldschmidt
* sockets.c: fixed bug #39882 No function shall set errno to 0
2014-02-20: Simon Goldschmidt
* mib_structs.c: fixed bug #40050 SNMP problem with MIB arrays > 255

2
src/api/sockets.c

@ -225,7 +225,7 @@ static const int err_to_errno_table[] = {
#ifdef ERRNO
#ifndef set_errno
#define set_errno(err) errno = (err)
#define set_errno(err) do { if (err) { errno = (err); } } while(0)
#endif
#else /* ERRNO */
#define set_errno(err)

Loading…
Cancel
Save