Fri, 11 May 2018 11:35:38 -0500
Silence PurpleProtocolAttention expected argument build warning
When building, it complained about expecting a PurpleProtocolAttention
pointer, but that it was a PurpleProtocol pointer. This patch casts
to the right type to silence the warning.
| libpurple/server.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/server.c Wed May 09 03:14:08 2018 +0000 +++ b/libpurple/server.c Fri May 11 11:35:38 2018 -0500 @@ -298,7 +298,8 @@ if (PURPLE_IS_PROTOCOL_ATTENTION(protocol)) { GList *attention_types; - attention_types = purple_protocol_attention_get_types(protocol, account); + attention_types = purple_protocol_attention_get_types( + PURPLE_PROTOCOL_ATTENTION(protocol), account); attn = (PurpleAttentionType *)g_list_nth_data(attention_types, type_code); } else { attn = NULL;