Index: net/base/nss_memio.h |
diff --git a/net/base/nss_memio.h b/net/base/nss_memio.h |
index 8481d15e7a74e207c39762a5d96301cc119ad484..b2b873bdca39f4be7b6b4a7d0de5abdd7dc489f5 100644 |
--- a/net/base/nss_memio.h |
+++ b/net/base/nss_memio.h |
@@ -79,12 +79,13 @@ int memio_GetReadableBufferSize(memio_Private *secret); |
void memio_PutReadResult(memio_Private *secret, int bytes_read); |
/* Ask memio what data it has to send to the network. |
- * Returns up to two buffers of data by writing the positions and lengths into |
- * |buf1|, |len1| and |buf2|, |len2|. |
+ * If there was previous a write error, the NSPR error code is returned. |
+ * Otherwise, it returns 0 and provides up to two buffers of data by |
+ * writing the positions and lengths into |buf1|, |len1| and |buf2|, |len2|. |
*/ |
-void memio_GetWriteParams(memio_Private *secret, |
- const char **buf1, unsigned int *len1, |
- const char **buf2, unsigned int *len2); |
+int memio_GetWriteParams(memio_Private *secret, |
+ const char **buf1, unsigned int *len1, |
+ const char **buf2, unsigned int *len2); |
/* Tell memio how many bytes were sent to the network. |
* If bytes_written is < 0, it is treated as an NSPR error code. |