summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2021-10-17 21:03:06 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2021-10-17 21:03:06 +0000
commit6f007c7e101463b4234728e298278c8a015384d2 (patch)
treec3966b12da72b204eef592f5a6999edbd4e6d069 /usr.bin
parent16b293893d8d40befd69736b34e541059bff01ee (diff)
simplify a few accesses to fields of structs, using auxiliary pointer
variables that are already present (and used nearby) in the code; no functional change
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mandoc/out.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/out.c b/usr.bin/mandoc/out.c
index dc4e4de44d6..e681997a1e3 100644
--- a/usr.bin/mandoc/out.c
+++ b/usr.bin/mandoc/out.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: out.c,v 1.56 2021/10/17 20:47:54 schwarze Exp $ */
+/* $OpenBSD: out.c,v 1.57 2021/10/17 21:03:05 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2014, 2015, 2017, 2018, 2019, 2021
@@ -245,13 +245,13 @@ tblcalc(struct rofftbl *tbl, const struct tbl_span *sp_first,
done = 1;
break;
} else
- (*gp)->wanted -= width;
+ g->wanted -= width;
}
if (done) {
*gp = g->next;
free(g);
} else
- gp = &(*gp)->next;
+ gp = &g->next;
}
colwidth = mandoc_reallocarray(NULL, maxcol + 1, sizeof(*colwidth));
@@ -324,7 +324,7 @@ tblcalc(struct rofftbl *tbl, const struct tbl_span *sp_first,
*gp = g->next;
free(g);
} else
- gp = &(*gp)->next;
+ gp = &g->next;
}
}
free(colwidth);