diff src/protocols/yahoo/ycht.c @ 11318:519dc2186438

[gaim-migrate @ 13521] Bits and pieces all over the place. I was hunting down compiler warnings all over the place, with crazy CFLAGS. I think I might have got a bit carried away. I made the perl stuff compile with gcc 2.x (which don't support mixed declerations and statements), I think what I did was safe but readily admit I have no clue how all the perl stuff works. Rename gaim_presence_add_presence() to gaim_presence_add_list() (to match the header file - obviously nothing actually _uses_ this) Implement gaim_savedstatus_get_handle() because it's in the header file. Remove gaim_account_set_presence() from account.h - it's not actually implemented anywhere, so it can't be that important. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 20 Aug 2005 20:17:08 +0000
parents a8f9e5ce4f92
children f4e58e94ced3
line wrap: on
line diff
--- a/src/protocols/yahoo/ycht.c	Fri Aug 19 20:06:37 2005 +0000
+++ b/src/protocols/yahoo/ycht.c	Sat Aug 20 20:17:08 2005 +0000
@@ -193,7 +193,7 @@
 /*****************************************************************************
  * Functions dealing with YCHT packets and their contents directly.
  *****************************************************************************/
-static void ycht_packet_dump(const char *data, int len)
+static void ycht_packet_dump(const guchar *data, int len)
 {
 #ifdef YAHOO_YCHT_DEBUG
 	int i;
@@ -431,7 +431,7 @@
 		if (ycht->rxlen < YCHT_HEADER_LEN)
 			return;
 
-		if (strncmp("YCHT", ycht->rxqueue, 4) != 0)
+		if (strncmp("YCHT", (char *)ycht->rxqueue, 4) != 0)
 			gaim_debug_error("yahoo", "YCHT: protocol error.\n");
 
 		pos += 4; /* YCHT */
@@ -453,11 +453,11 @@
 		ycht_packet_dump(ycht->rxqueue, YCHT_HEADER_LEN + pktlen);
 
 		pkt = ycht_packet_new(version, service, status);
-		ycht_packet_read(pkt, ycht->rxqueue + pos, pktlen);
+		ycht_packet_read(pkt, (char *)ycht->rxqueue + pos, pktlen);
 
 		ycht->rxlen -= YCHT_HEADER_LEN + pktlen;
 		if (ycht->rxlen) {
-			char *tmp = g_memdup(ycht->rxqueue + YCHT_HEADER_LEN + pktlen, ycht->rxlen);
+			guchar *tmp = g_memdup(ycht->rxqueue + YCHT_HEADER_LEN + pktlen, ycht->rxlen);
 			g_free(ycht->rxqueue);
 			ycht->rxqueue = tmp;
 		} else {