mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
Merge branch 'duplicate-errno' into 'master'
io: Remove duplicated conditionals. See merge request GNOME/libxml2!303
This commit is contained in:
commit
48daaa7607
6
xmlIO.c
6
xmlIO.c
@ -263,18 +263,12 @@ xmlIOErr(int err)
|
||||
#ifdef ECONNREFUSED
|
||||
else if (err == ECONNREFUSED) code = XML_IO_ECONNREFUSED;
|
||||
#endif
|
||||
#ifdef ETIMEDOUT
|
||||
else if (err == ETIMEDOUT) code = XML_IO_ETIMEDOUT;
|
||||
#endif
|
||||
#ifdef ENETUNREACH
|
||||
else if (err == ENETUNREACH) code = XML_IO_ENETUNREACH;
|
||||
#endif
|
||||
#ifdef EADDRINUSE
|
||||
else if (err == EADDRINUSE) code = XML_IO_EADDRINUSE;
|
||||
#endif
|
||||
#ifdef EINPROGRESS
|
||||
else if (err == EINPROGRESS) code = XML_IO_EINPROGRESS;
|
||||
#endif
|
||||
#ifdef EALREADY
|
||||
else if (err == EALREADY) code = XML_IO_EALREADY;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user