aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-01-18 02:18:40 -0300
committerdequis <dx@dxzone.com.ar>2015-01-25 23:43:34 -0300
commit8519f457c31139750b9f7497834ac90a57196d22 (patch)
tree8a86d07256269255c927c2ff652cc26f5048e6ca
parent95e17fc1eacde2a4b4f2948e99701bc2bf6d75ec (diff)
Silence some oscar compilation warnings
And that's enough editing of the oscar protocol code for 2015
-rw-r--r--protocols/oscar/chat.c5
-rw-r--r--protocols/oscar/tlv.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/protocols/oscar/chat.c b/protocols/oscar/chat.c
index d8399563..6c8d8998 100644
--- a/protocols/oscar/chat.c
+++ b/protocols/oscar/chat.c
@@ -66,7 +66,8 @@ int aim_chat_send_im(aim_session_t *sess, aim_conn_t *conn, guint16 flags, const
*
*/
for (i = 0; i < sizeof(ckstr); i++)
- aimutil_put8(ckstr+i, (guint8) rand());
+ (void) aimutil_put8(ckstr+i, (guint8) rand());
+
cookie = aim_mkcookie(ckstr, AIM_COOKIETYPE_CHAT, NULL);
cookie->data = NULL; /* XXX store something useful here */
@@ -227,7 +228,7 @@ int aim_chat_invite(aim_session_t *sess, aim_conn_t *conn, const char *sn, const
* Cookie
*/
for (i = 0; i < sizeof(ckstr); i++)
- aimutil_put8(ckstr, (guint8) rand());
+ (void) aimutil_put8(ckstr, (guint8) rand());
/* XXX should be uncached by an unwritten 'invite accept' handler */
if ((priv = g_malloc(sizeof(struct aim_invite_priv)))) {
diff --git a/protocols/oscar/tlv.c b/protocols/oscar/tlv.c
index 89ef6f26..e7e3a7be 100644
--- a/protocols/oscar/tlv.c
+++ b/protocols/oscar/tlv.c
@@ -180,7 +180,7 @@ int aim_addtlvtochain8(aim_tlvlist_t **list, const guint16 t, const guint8 v)
{
guint8 v8[1];
- aimutil_put8(v8, v);
+ (void) aimutil_put8(v8, v);
return aim_addtlvtochain_raw(list, t, 1, v8);
}
@@ -198,7 +198,7 @@ int aim_addtlvtochain16(aim_tlvlist_t **list, const guint16 t, const guint16 v)
{
guint8 v16[2];
- aimutil_put16(v16, v);
+ (void) aimutil_put16(v16, v);
return aim_addtlvtochain_raw(list, t, 2, v16);
}
@@ -216,7 +216,7 @@ int aim_addtlvtochain32(aim_tlvlist_t **list, const guint16 t, const guint32 v)
{
guint8 v32[4];
- aimutil_put32(v32, v);
+ (void) aimutil_put32(v32, v);
return aim_addtlvtochain_raw(list, t, 4, v32);
}