mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
io: Remove duplicated conditionals.
This commit is contained in:
parent
dd4c0f62fa
commit
fad3c777cf
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