Mercurial > pidgin.yaz
comparison src/protocols/yahoo/yahoo.c @ 11897:a1aa681f1448
[gaim-migrate @ 14188]
Make some things static and make msn disconnect errors slightly less geeky
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 30 Oct 2005 16:59:25 +0000 |
parents | ded0ec14f5d3 |
children | 2219f4bf4a57 |
comparison
equal
deleted
inserted
replaced
11896:8aa6462e563c | 11897:a1aa681f1448 |
---|---|
1065 /* This is the y64 alphabet... it's like base64, but has a . and a _ */ | 1065 /* This is the y64 alphabet... it's like base64, but has a . and a _ */ |
1066 char base64digits[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._"; | 1066 char base64digits[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._"; |
1067 | 1067 |
1068 /* This is taken from Sylpheed by Hiroyuki Yamamoto. We have our own tobase64 function | 1068 /* This is taken from Sylpheed by Hiroyuki Yamamoto. We have our own tobase64 function |
1069 * in util.c, but it has a bug I don't feel like finding right now ;) */ | 1069 * in util.c, but it has a bug I don't feel like finding right now ;) */ |
1070 void to_y64(char *out, const unsigned char *in, gsize inlen) | 1070 static void to_y64(char *out, const unsigned char *in, gsize inlen) |
1071 /* raw bytes in quasi-big-endian order to base 64 string (NUL-terminated) */ | 1071 /* raw bytes in quasi-big-endian order to base 64 string (NUL-terminated) */ |
1072 { | 1072 { |
1073 for (; inlen >= 3; inlen -= 3) | 1073 for (; inlen >= 3; inlen -= 3) |
1074 { | 1074 { |
1075 *out++ = base64digits[in[0] >> 2]; | 1075 *out++ = base64digits[in[0] >> 2]; |