dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 0cf01cd88e465fb3540aa45a7236c221cb0587c2
parent 4d43d2d3b95cbe39e30ef70c89747798dd67eb85
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 23 Oct 2014 13:58:57 +0200

Explicitly initialize fields

Diffstat:
dvtm.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -204,14 +204,14 @@ static char *title; /* global variables */ static const char *dvtm_name = "dvtm"; -Screen screen = { MFACT, SCROLL_HISTORY }; +Screen screen = { .mfact = MFACT, .history = SCROLL_HISTORY }; static Client *sel = NULL; static Client *lastsel = NULL; static Client *msel = NULL; static bool mouse_events_enabled = ENABLE_MOUSE; static Layout *layout = layouts; -static StatusBar bar = { -1, BAR_POS, 1 }; -static CmdFifo cmdfifo = { -1 }; +static StatusBar bar = { .fd = -1, .pos = BAR_POS, .h = 1 }; +static CmdFifo cmdfifo = { .fd = -1 }; static const char *shell; static Register copyreg; static volatile sig_atomic_t running = true;