aboutsummaryrefslogtreecommitdiff
path: root/center.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-10-04 10:51:12 +0200
committerThomas Voss <mail@thomasvoss.com> 2022-10-04 10:51:12 +0200
commit6fb30c950953f10e757d1964a8ec0e38dd71f034 (patch)
treef88ec4a9d673b170c375726d3a71484e662f456e /center.c
parentba2f3b5d6277ae6aa0c5ff104c5048a71d06458f (diff)
Remove excess parens
Diffstat (limited to 'center.c')
-rw-r--r--center.c2
1 files changed, 1 insertions, 1 deletions
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);