mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 12:42:16 -05:00
Fix more warnings
This commit is contained in:
parent
a656cee382
commit
5c223ec5d5
@ -1085,12 +1085,10 @@ set_showval (session *sess, const struct prefs *var, char *tbuf)
|
||||
|
||||
len = strlen (var->name);
|
||||
memcpy (tbuf, var->name, len);
|
||||
dots = 29 - len;
|
||||
|
||||
if (dots < 0)
|
||||
{
|
||||
if (len > 29)
|
||||
dots = 0;
|
||||
}
|
||||
else
|
||||
dots = 29 - len;
|
||||
|
||||
tbuf[len++] = '\003';
|
||||
tbuf[len++] = '2';
|
||||
|
@ -1548,7 +1548,8 @@ hexchat_list_int (hexchat_plugin *ph, hexchat_list *xlist, const char *name)
|
||||
{
|
||||
guint32 hash = str_hash (name);
|
||||
gpointer data = ph->context;
|
||||
int tmp, type = LIST_CHANNELS;
|
||||
int tmp = 0;
|
||||
int type = LIST_CHANNELS;
|
||||
|
||||
/* a NULL xlist is a shortcut to current "channels" context */
|
||||
if (xlist)
|
||||
|
Loading…
Reference in New Issue
Block a user