sm00th / bitlbee-discord

Bitlbee plugin for Discord (http://discordapp.com)
GNU General Public License v2.0
290 stars 27 forks source link

discord-websockets: fix some warnings #98

Closed kensanata closed 7 years ago

kensanata commented 7 years ago

As discord_data.seq is a guint64, use G_GUINT64_FORMAT instead of PRIu64. This fixes "warning: format specifies type 'unsigned long long' but the argument has type 'guint64'".

The other two changes are supposed to fix "warning: implicit conversion from 'int' to 'gchar' (aka 'char') changes value from 255 to -1". (I'm less sure about this change.)

sm00th commented 7 years ago

Merged manually. Had to fix up the commits a bit so that the changes are properly separated.