From a28369258b89e013103edcca20355eb61fffdf69 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 4 May 2022 11:08:23 -0700 Subject: formatting --- curses.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'curses.c') diff --git a/curses.c b/curses.c index 12141af..174a6b9 100644 --- a/curses.c +++ b/curses.c @@ -94,7 +94,8 @@ void curses_draw(struct leg *l1, struct leg *l2) int buflen = 0; int wlines = LINES - 3; - int n_visits = l1->n_visits > l2->n_visits ? l1->n_visits : l2->n_visits; + int n_visits = l1->n_visits > l2->n_visits ? l1->n_visits : + l2->n_visits; int start_visit = (wlines > n_visits) ? 0 : (n_visits - wlines); int offset = 0; @@ -132,7 +133,8 @@ void curses_draw(struct leg *l1, struct leg *l2) for (int j = 0; j < v->n_darts; ++j) { char *n = segment_name(v->darts[j]); - buflen += sprintf(buf + buflen, j == 0 ? " %4s" :" %4s", n); + buflen += sprintf(buf + buflen, + j == 0 ? " %4s" :" %4s", n); free(n); } flushbuf(buf, &buflen, COLOR_PAIR(C_DARTS)); -- cgit v1.2.3-70-g09d2