Mercurial > ~mikael > mcabber > hg
diff mcabber/src/screen.c @ 735:2f027806cd48
Some code cleanup
This patch will kill a few pedantic warnings
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 09 Mar 2006 20:15:37 +0100 |
parents | f30031cdb56b |
children | 0d5fb1d9077c |
line wrap: on
line diff
--- a/mcabber/src/screen.c Thu Mar 09 19:40:00 2006 +0100 +++ b/mcabber/src/screen.c Thu Mar 09 20:15:37 2006 +0100 @@ -811,7 +811,7 @@ // Display the buddylist (not really the roster) on the screen void scr_DrawRoster(void) { - static guint offset = 0; + static int offset = 0; char *name, *rline; int maxx, maxy; GList *buddy; @@ -1022,7 +1022,7 @@ scr_ShowWindow(jidto); } -void inline set_autoaway(bool setaway) +inline void set_autoaway(bool setaway) { static enum imstatus oldstatus; static char *oldmsg; @@ -1071,7 +1071,7 @@ if (!activity) { time_t now; time(&now); - if (!Autoaway && (now > LastActivity + autoaway_timeout)) + if (!Autoaway && (now > LastActivity + (time_t)autoaway_timeout)) set_autoaway(TRUE); } }