more warning fixes

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@863 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-23 23:06:29 +00:00 committed by cras
commit 4e0166a44d
5 changed files with 7 additions and 13 deletions

View file

@ -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);