aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipfw
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-01 09:02:43 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-01 09:02:43 +0000
commit0fa427fe195083ade5825cff5ec6500e1c780f9f (patch)
tree87fd46adb0edb094d2b26f44f287d2b0969f5d58 /sbin/ipfw
parent59ca674ef24541b4cdebc20d6399904f46a2cc03 (diff)
downloadsrc-0fa427fe195083ade5825cff5ec6500e1c780f9f.tar.gz
src-0fa427fe195083ade5825cff5ec6500e1c780f9f.zip
Change printf format string to include the extra blank
This is a follow up change to r364321 after a discussion about the style. All near by places use extra blanks in format strings, and while use of the format string to provide the extra blank may need more cycles than adding 1 to twidth, it generates shorter code and is clearer in the opinion of some reviewers of the previous change. Not objected to by: emaste MFC after: 3 days
Notes
Notes: svn path=/head/; revision=365030
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/ipfw2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index e0b5371adb91..b5d559a48055 100644
--- a/sbin/ipfw/ipfw2.c
+++ b/sbin/ipfw/ipfw2.c
@@ -2199,7 +2199,7 @@ show_static_rule(struct cmdline_opts *co, struct format_opts *fo,
*strchr(timestr, '\n') = '\0';
bprintf(bp, "%s ", timestr);
} else {
- bprintf(bp, "%*s", twidth + 1, " ");
+ bprintf(bp, "%*s ", twidth, "");
}
}