Mercurial > pidgin
diff src/protocols/oscar/locate.c @ 11159:bd8ac1d4b2f2
[gaim-migrate @ 13246]
Get rid of a bunch of gcc4 compile warnings in oscar.
Here's what I'm doing:
-For random bits of binary data, use guchar *
-For textual data (not necessarily utf8), use gchar *
This seems to be what glib and gtk do
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 26 Jul 2005 04:34:37 +0000 |
parents | 1d58cc6c4552 |
children | 7d31d61e6438 |
line wrap: on
line diff
--- a/src/protocols/oscar/locate.c Mon Jul 25 23:46:34 2005 +0000 +++ b/src/protocols/oscar/locate.c Tue Jul 26 04:34:37 2005 +0000 @@ -963,21 +963,21 @@ * profile_encoding and awaymsg_encoding MUST be set if profile or * away are set, respectively, and their value may or may not be * restricted to a few choices. I am currently aware of: - * + * * us-ascii Just that * unicode-2-0 UCS2-BE - * + * * profile_len and awaymsg_len MUST be set similarly, and they MUST * be the length of their respective strings in bytes. * * To get the previous behavior of awaymsg == "" un-setting the away * message, set awaymsg non-NULL and awaymsg_len to 0 (this is the * obvious equivalent). - * + * */ faim_export int aim_locate_setprofile(aim_session_t *sess, - const char *profile_encoding, const fu8_t *profile, const int profile_len, - const char *awaymsg_encoding, const fu8_t *awaymsg, const int awaymsg_len) + const char *profile_encoding, const gchar *profile, const int profile_len, + const char *awaymsg_encoding, const gchar *awaymsg, const int awaymsg_len) { aim_conn_t *conn; aim_frame_t *fr; @@ -1005,7 +1005,7 @@ } snprintf(encoding, strlen(defencoding) + strlen(profile_encoding), defencoding, profile_encoding); aim_tlvlist_add_str(&tl, 0x0001, encoding); - aim_tlvlist_add_raw(&tl, 0x0002, profile_len, profile); + aim_tlvlist_add_raw(&tl, 0x0002, profile_len, (const guchar *)profile); free(encoding); } @@ -1025,7 +1025,7 @@ } snprintf(encoding, strlen(defencoding) + strlen(awaymsg_encoding), defencoding, awaymsg_encoding); aim_tlvlist_add_str(&tl, 0x0003, encoding); - aim_tlvlist_add_raw(&tl, 0x0004, awaymsg_len, awaymsg); + aim_tlvlist_add_raw(&tl, 0x0004, awaymsg_len, (const guchar *)awaymsg); free(encoding); } else aim_tlvlist_add_noval(&tl, 0x0004);