summaryrefslogtreecommitdiff
path: root/curses.c
diff options
context:
space:
mode:
Diffstat (limited to 'curses.c')
-rw-r--r--curses.c6
1 files changed, 4 insertions, 2 deletions
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));