From 27c8c343b610263f83ac2328735feeb881c6c92f Mon Sep 17 00:00:00 2001 From: "dtucker@openbsd.org" Date: Fri, 22 Oct 2021 09:22:04 +0000 Subject: [PATCH] upstream: Remove unnecessary semicolons ... in case statements. From khaleesicodes via github PR#280. OpenBSD-Commit-ID: e1e89360b65775cff83e77ce040b342015caf4ed --- addr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addr.c b/addr.c index 100ade7bd..ac5ec8983 100644 --- a/addr.c +++ b/addr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: addr.c,v 1.2 2021/10/22 09:19:34 dtucker Exp $ */ +/* $OpenBSD: addr.c,v 1.3 2021/10/22 09:22:04 dtucker Exp $ */ /* * Copyright (c) 2004-2008 Damien Miller @@ -244,7 +244,7 @@ addr_cmp(const struct xaddr *a, const struct xaddr *b) if (a->v4.s_addr == b->v4.s_addr) return 0; return (ntohl(a->v4.s_addr) > ntohl(b->v4.s_addr) ? 1 : -1); - case AF_INET6:; + case AF_INET6: /* * Do this a byte at a time to avoid the above issue and * any endian problems @@ -268,7 +268,7 @@ addr_is_all0s(const struct xaddr *a) switch (a->af) { case AF_INET: return (a->v4.s_addr == 0 ? 0 : -1); - case AF_INET6:; + case AF_INET6: for (i = 0; i < 4; i++) if (a->addr32[i] != 0) return -1;