From 1fddd66575cdc46d58d460e192cf9313a2d15abc Mon Sep 17 00:00:00 2001 From: schwarze Date: Sun, 17 Oct 2021 21:03:05 +0000 Subject: [PATCH] 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 --- usr.bin/mandoc/out.c | 8 ++++---- 1 file 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 * 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); -- 2.20.1