comparison 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
comparison
equal deleted inserted replaced
734:1d9f0efcfcee 735:2f027806cd48
809 809
810 // scr_DrawRoster() 810 // scr_DrawRoster()
811 // Display the buddylist (not really the roster) on the screen 811 // Display the buddylist (not really the roster) on the screen
812 void scr_DrawRoster(void) 812 void scr_DrawRoster(void)
813 { 813 {
814 static guint offset = 0; 814 static int offset = 0;
815 char *name, *rline; 815 char *name, *rline;
816 int maxx, maxy; 816 int maxx, maxy;
817 GList *buddy; 817 GList *buddy;
818 int i, n; 818 int i, n;
819 int rOffset; 819 int rOffset;
1020 { 1020 {
1021 scr_WriteMessage(jidto, text, 0, HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT); 1021 scr_WriteMessage(jidto, text, 0, HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT);
1022 scr_ShowWindow(jidto); 1022 scr_ShowWindow(jidto);
1023 } 1023 }
1024 1024
1025 void inline set_autoaway(bool setaway) 1025 inline void set_autoaway(bool setaway)
1026 { 1026 {
1027 static enum imstatus oldstatus; 1027 static enum imstatus oldstatus;
1028 static char *oldmsg; 1028 static char *oldmsg;
1029 Autoaway = setaway; 1029 Autoaway = setaway;
1030 1030
1069 return; 1069 return;
1070 1070
1071 if (!activity) { 1071 if (!activity) {
1072 time_t now; 1072 time_t now;
1073 time(&now); 1073 time(&now);
1074 if (!Autoaway && (now > LastActivity + autoaway_timeout)) 1074 if (!Autoaway && (now > LastActivity + (time_t)autoaway_timeout))
1075 set_autoaway(TRUE); 1075 set_autoaway(TRUE);
1076 } 1076 }
1077 } 1077 }
1078 1078
1079 // set_current_buddy(newbuddy) 1079 // set_current_buddy(newbuddy)