Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 1665:1a4890514eb9
Clean up some dead assignments/dead variables
author | Ulrich Spörlein |
---|---|
date | Tue, 02 Feb 2010 19:44:39 +0100 |
parents | dcb0b4522ded |
children |
comparison
equal
deleted
inserted
replaced
1664:2f6bdfa0cb01 | 1665:1a4890514eb9 |
---|---|
1065 // scr_UpdateWindow() | 1065 // scr_UpdateWindow() |
1066 // (Re-)Display the given chat window. | 1066 // (Re-)Display the given chat window. |
1067 static void scr_UpdateWindow(winbuf *win_entry) | 1067 static void scr_UpdateWindow(winbuf *win_entry) |
1068 { | 1068 { |
1069 int n; | 1069 int n; |
1070 int width; | |
1071 guint prefixwidth; | 1070 guint prefixwidth; |
1072 char pref[96]; | 1071 char pref[96]; |
1073 hbb_line **lines, *line; | 1072 hbb_line **lines, *line; |
1074 GList *hbuf_head; | 1073 GList *hbuf_head; |
1075 int color; | 1074 int color; |
1076 | 1075 |
1077 width = getmaxx(win_entry->win); | |
1078 prefixwidth = scr_getprefixwidth(); | 1076 prefixwidth = scr_getprefixwidth(); |
1079 prefixwidth = MIN(prefixwidth, sizeof pref); | 1077 prefixwidth = MIN(prefixwidth, sizeof pref); |
1080 | 1078 |
1081 // Should the window be empty? | 1079 // Should the window be empty? |
1082 if (win_entry->bd->cleared) { | 1080 if (win_entry->bd->cleared) { |