[evolution-ews] Partially revert Windows build fix (bd00e294). We use 'write()' on disk files.



commit 13de0304dfa62d69d3eb12b094ed7da874a87d76
Author: David Woodhouse <David Woodhouse intel com>
Date:   Fri May 6 15:13:11 2011 +0100

    Partially revert Windows build fix (bd00e294). We use 'write()' on disk files.

 src/server/e-soap-message.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/server/e-soap-message.c b/src/server/e-soap-message.c
index 59c7a7b..7be24b6 100644
--- a/src/server/e-soap-message.c
+++ b/src/server/e-soap-message.c
@@ -215,7 +215,7 @@ static void soap_sax_characters (void *_ctxt, const xmlChar *ch, int len)
 	if (priv->steal_fd == -1)
 		xmlSAX2Characters (ctxt, ch, len);
 	else if (!priv->steal_base64) {
-		if (send (priv->steal_fd, (const gchar*)ch, len, 0) != len) {
+		if (write (priv->steal_fd, (const gchar*)ch, len, 0) != len) {
 		write_err:
 			/* Handle error better */
 			g_warning ("Failed to write streaming data to file");
@@ -227,7 +227,7 @@ static void soap_sax_characters (void *_ctxt, const xmlChar *ch, int len)
 		blen = g_base64_decode_step ((const gchar *)ch, len,
 					     bdata, &priv->steal_b64_state,
 					     &priv->steal_b64_save);
-		if (send (priv->steal_fd, (const gchar*)bdata, blen, 0) != blen) {
+		if (write (priv->steal_fd, (const gchar*)bdata, blen, 0) != blen) {
 			g_free (bdata);
 			goto write_err;
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]