changeset 13270:8754a0fe2297

[gaim-migrate @ 15636] Fix signedness problems committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 13 Feb 2006 04:27:52 +0000
parents 3638606a5afa
children aaeb6ea63c56
files src/protocols/msn/httpconn.c src/protocols/msn/httpconn.h src/protocols/msn/servconn.c src/protocols/msn/servconn.h
diffstat 4 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/httpconn.c	Mon Feb 13 04:11:39 2006 +0000
+++ b/src/protocols/msn/httpconn.c	Mon Feb 13 04:27:52 2006 +0000
@@ -400,8 +400,7 @@
 		return;
 	}
 
-	if (servconn->rx_buf != NULL)
-		g_free(servconn->rx_buf);
+	g_free(servconn->rx_buf);
 	servconn->rx_buf = result_msg;
 	servconn->rx_len = result_len;
 
@@ -464,7 +463,7 @@
 	g_free(old_rx_buf);
 }
 
-size_t
+ssize_t
 msn_httpconn_write(MsnHttpConn *httpconn, const char *body, size_t size)
 {
 	char *params;
@@ -472,7 +471,7 @@
 	char *auth;
 	const char *server_types[] = { "NS", "SB" };
 	const char *server_type;
-	size_t r; /* result of the write operation */
+	ssize_t r; /* result of the write operation */
 	char *host;
 	MsnServConn *servconn;
 
--- a/src/protocols/msn/httpconn.h	Mon Feb 13 04:11:39 2006 +0000
+++ b/src/protocols/msn/httpconn.h	Mon Feb 13 04:27:52 2006 +0000
@@ -87,7 +87,7 @@
  *
  * @return The number of bytes written.
  */
-size_t msn_httpconn_write(MsnHttpConn *httpconn, const char *data, size_t size);
+ssize_t msn_httpconn_write(MsnHttpConn *httpconn, const char *data, size_t size);
 
 /**
  * Connects the HTTP connection object to a host.
--- a/src/protocols/msn/servconn.c	Mon Feb 13 04:11:39 2006 +0000
+++ b/src/protocols/msn/servconn.c	Mon Feb 13 04:27:52 2006 +0000
@@ -311,10 +311,10 @@
 	gaim_circ_buffer_mark_read(servconn->tx_buf, ret);
 }
 
-size_t
+ssize_t
 msn_servconn_write(MsnServConn *servconn, const char *buf, size_t len)
 {
-	size_t ret = 0;
+	ssize_t ret = 0;
 
 	g_return_val_if_fail(servconn != NULL, 0);
 
--- a/src/protocols/msn/servconn.h	Mon Feb 13 04:11:39 2006 +0000
+++ b/src/protocols/msn/servconn.h	Mon Feb 13 04:27:52 2006 +0000
@@ -155,7 +155,7 @@
  * @param buf The data to write.
  * @param size The size of the data.
  */
-size_t msn_servconn_write(MsnServConn *servconn, const char *buf,
+ssize_t msn_servconn_write(MsnServConn *servconn, const char *buf,
 						  size_t size);
 
 /**