main: cleanup

This commit is contained in:
Daniel Eklöf 2019-10-27 19:21:16 +01:00
parent 9a31c1ed96
commit 2eaa258e11
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

7
main.c
View file

@ -276,7 +276,6 @@ main(int argc, char *const *argv)
case 'f':
tll_free_and_free(conf.fonts, free);
//tll_push_back(conf.fonts, strdup(optarg));
for (char *font = strtok(optarg, ","); font != NULL; font = strtok(NULL, ",")) {
/* Strip leading spaces */
@ -349,10 +348,6 @@ main(int argc, char *const *argv)
},
.vt = {
.state = 1, /* STATE_GROUND */
.attrs = {
//.foreground = conf.colors.fg,
//.background = conf.colors.bg
},
},
.colors = {
.default_fg = conf.colors.fg,
@ -521,8 +516,6 @@ main(int argc, char *const *argv)
conf.height = max(conf.height, term.cell_height);
render_resize(&term, conf.width, conf.height);
wl_display_dispatch_pending(term.wl->display);
{
int fork_pipe[2];
if (pipe2(fork_pipe, O_CLOEXEC) < 0) {