From 6fb30c950953f10e757d1964a8ec0e38dd71f034 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 4 Oct 2022 10:51:12 +0200 Subject: Remove excess parens --- center.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'center.c') diff --git a/center.c b/center.c index 2c4ac0f..57b5473 100644 --- a/center.c +++ b/center.c @@ -183,7 +183,7 @@ center_by_longest(FILE *fp) line = STAILQ_FIRST(&list_head); while (line != NULL) { int len = longest; - for (int i = ((width - len) / 2); i >= 0; i--) + for (int i = (width - len) / 2; i >= 0; i--) putchar(' '); fputs(line->buffer, stdout); -- cgit v1.2.3