Mercurial > pidgin
diff src/protocols/yahoo/yahoo.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 | 10066662176a |
children | 17142948653e |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Fri Aug 19 20:06:37 2005 +0000 +++ b/src/protocols/yahoo/yahoo.c Sat Aug 20 20:17:08 2005 +0000 @@ -2110,7 +2110,7 @@ if (yd->rxlen < YAHOO_PACKET_HDRLEN) return; - if (strncmp(yd->rxqueue, "YMSG", MIN(4, yd->rxlen)) != 0) { + if (strncmp((char *)yd->rxqueue, "YMSG", MIN(4, yd->rxlen)) != 0) { /* HEY! This isn't even a YMSG packet. What * are you trying to pull? */ guchar *start; @@ -2156,7 +2156,7 @@ yd->rxlen -= YAHOO_PACKET_HDRLEN + pktlen; if (yd->rxlen) { - char *tmp = g_memdup(yd->rxqueue + YAHOO_PACKET_HDRLEN + pktlen, yd->rxlen); + guchar *tmp = g_memdup(yd->rxqueue + YAHOO_PACKET_HDRLEN + pktlen, yd->rxlen); g_free(yd->rxqueue); yd->rxqueue = tmp; } else {