mirror of
https://github.com/GNOME/libxml2.git
synced 2025-04-12 19:30:25 +08:00
io: Remove duplicated conditionals.
This commit is contained in:
parent
5964fb7c5f
commit
fa539305fa
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