Skip to content

Commit

Permalink
ui: fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Mar 15, 2017
1 parent 7b691a6 commit b801dca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui-terminal-curses.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static int ui_curses_colors(Ui *ui) {
return COLORS;
}

static bool ui_curses_init(UiTerm *tui, const char *term) {
static bool ui_curses_init(UiTerm *tui, char *term) {
if (!newterm(term, stderr, stdin)) {
snprintf(tui->info, sizeof(tui->info), "Warning: unknown term `%s'", term);
if (!newterm(strstr(term, "-256color") ? "xterm-256color" : "xterm", stderr, stdin))
Expand Down
2 changes: 1 addition & 1 deletion ui-terminal-vt100.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static void ui_vt100_resume(UiTerm *term) {
cursor_visible(false);
}

static bool ui_vt100_init(UiTerm *tui, const char *term) {
static bool ui_vt100_init(UiTerm *tui, char *term) {
ui_vt100_resume(tui);
return true;
}
Expand Down

0 comments on commit b801dca

Please sign in to comment.