comparison plugins/yay/misc.c @ 1552:b669f48f0990

[gaim-migrate @ 1562] fix for stupidity. not sure if add/remove buddies works yet (code is there but it's very untested) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 09 Mar 2001 12:10:56 +0000
parents 92b3dd1e4129
children
comparison
equal deleted inserted replaced
1551:497a074fa1c8 1552:b669f48f0990
51 *r = '\0'; 51 *r = '\0';
52 52
53 return ret; 53 return ret;
54 } 54 }
55 55
56 int yahoo_makeint(char *buf) 56 int yahoo_makeint(guchar *buf)
57 { 57 {
58 return ((buf[3] << 24) + (buf[2] << 16) + (buf[1] << 8) + buf[0]); 58 return ((buf[3] << 24) + (buf[2] << 16) + (buf[1] << 8) + buf[0]);
59 } 59 }
60 60
61 void yahoo_storeint(char *buf, guint data) 61 void yahoo_storeint(guchar *buf, guint data)
62 { 62 {
63 int i; 63 int i;
64 for (i = 0; i < 4; i++) { 64 for (i = 0; i < 4; i++) {
65 buf[i] = data % 256; 65 buf[i] = data % 256;
66 data >>= 8; 66 data >>= 8;