dvtm

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

commit ed8a76c20108413752ba6b28db5b9ca4d2c854a2
parent 0e4992ae5d962f2ad0a42dcb1da5a2e7167e7db2
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Mon, 16 Feb 2015 20:08:28 +0100

Coding style fixes

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

diff --git a/dvtm.c b/dvtm.c @@ -1255,7 +1255,7 @@ incnmaster(const char *args[]) { /* arg handling, manipulate nmaster */ if (args[0] == NULL) { screen.nmaster = NMASTER; - } else if (1 == sscanf(args[0], "%d", &delta)) { + } else if (sscanf(args[0], "%d", &delta) == 1) { if (args[0][0] == '+' || args[0][0] == '-') screen.nmaster += delta; else @@ -1275,7 +1275,7 @@ setmfact(const char *args[]) { /* arg handling, manipulate mfact */ if (args[0] == NULL) { screen.mfact = MFACT; - } else if (1 == sscanf(args[0], "%f", &delta)) { + } else if (sscanf(args[0], "%f", &delta) == 1) { if (args[0][0] == '+' || args[0][0] == '-') screen.mfact += delta; else