From: jsg Date: Mon, 22 Apr 2024 14:19:48 +0000 (+0000) Subject: fix indentation and remove uneeded braces X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=603ea0601cdfe9dc9b67af4df313e3e5fcbb4ff7;p=openbsd fix indentation and remove uneeded braces feedback and ok tb@ --- diff --git a/usr.bin/systat/pftop.c b/usr.bin/systat/pftop.c index d64dec2e35e..8668bd281f9 100644 --- a/usr.bin/systat/pftop.c +++ b/usr.bin/systat/pftop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pftop.c,v 1.46 2023/07/04 11:34:19 sashan Exp $ */ +/* $OpenBSD: pftop.c,v 1.47 2024/04/22 14:19:48 jsg Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar * Copyright (c) 2001 Daniel Hartmeier @@ -716,15 +716,13 @@ unmask(struct pf_addr * m) void tb_print_addr(struct pf_addr * addr, struct pf_addr * mask, int af) { - switch (af) { - case AF_INET: { - tbprintf("%s", inetname(addr->v4)); - break; - } - case AF_INET6: { - tbprintf("%s", inet6name(&addr->v6)); - break; - } + switch (af) { + case AF_INET: + tbprintf("%s", inetname(addr->v4)); + break; + case AF_INET6: + tbprintf("%s", inet6name(&addr->v6)); + break; } if (mask != NULL) {