mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
more warning fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@863 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
5f2f6886c8
commit
4e0166a44d
5 changed files with 7 additions and 13 deletions
|
|
@ -945,7 +945,7 @@ static char *gui_window_line_get_format(WINDOW_REC *window, LINE_REC *line,
|
|||
TEXT_DEST_REC dest;
|
||||
int formatnum, argcount;
|
||||
|
||||
text = line->text;
|
||||
text = (const unsigned char *) line->text;
|
||||
|
||||
/* skip the beginning of the line until we find the format */
|
||||
g_free(line_read_format(&text));
|
||||
|
|
@ -975,11 +975,6 @@ static char *gui_window_line_get_format(WINDOW_REC *window, LINE_REC *line,
|
|||
if (formatnum == -1)
|
||||
ret = NULL;
|
||||
else {
|
||||
THEME_REC *theme;
|
||||
|
||||
theme = window->theme == NULL ? current_theme :
|
||||
window->theme;
|
||||
|
||||
argcount = 0;
|
||||
while (*text != '\0' || text[1] != LINE_CMD_EOL) {
|
||||
args[argcount] = line_read_format(&text);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue