From d4c3ca287c0a0de1f99f569197cec8b6c74e9d69 Mon Sep 17 00:00:00 2001 From: dtucker Date: Fri, 22 Oct 2021 09:22:04 +0000 Subject: [PATCH] Remove unnecessary semicolons in case statements. From khaleesicodes via github PR#280. --- usr.bin/ssh/addr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/ssh/addr.c b/usr.bin/ssh/addr.c index 8393ba6677e..d7e73f92ee9 100644 --- a/usr.bin/ssh/addr.c +++ b/usr.bin/ssh/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 @@ -240,7 +240,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 @@ -264,7 +264,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; -- 2.20.1