mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
more portability patches from Albert Chin for HP-UX and AIX Daniel
* xmlIO.c xmlmodule.c: more portability patches from Albert Chin for HP-UX and AIX Daniel
This commit is contained in:
8
xmlIO.c
8
xmlIO.c
@@ -610,10 +610,12 @@ xmlFdRead (void * context, char * buffer, int len) {
|
||||
*/
|
||||
static int
|
||||
xmlFdWrite (void * context, const char * buffer, int len) {
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
ret = write((int) (long) context, &buffer[0], len);
|
||||
if (ret < 0) xmlIOErr(0, "write()");
|
||||
if (len > 0) {
|
||||
ret = write((int) (long) context, &buffer[0], len);
|
||||
if (ret < 0) xmlIOErr(0, "write()");
|
||||
}
|
||||
return(ret);
|
||||
}
|
||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||
|
Reference in New Issue
Block a user