From c28564e70de740bbdd5c247dd0405f90cf25b088 Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 22 Jun 2023 09:07:04 +0000 Subject: [PATCH] KNF --- usr.sbin/bgpctl/json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bgpctl/json.c b/usr.sbin/bgpctl/json.c index a009058b267..17be0fc55f8 100644 --- a/usr.sbin/bgpctl/json.c +++ b/usr.sbin/bgpctl/json.c @@ -1,4 +1,4 @@ -/* $OpenBSD: json.c,v 1.9 2023/06/05 16:24:05 claudio Exp $ */ +/* $OpenBSD: json.c,v 1.10 2023/06/22 09:07:04 claudio Exp $ */ /* * Copyright (c) 2020 Claudio Jeker @@ -232,7 +232,7 @@ json_do_string(const char *name, const char *v) eb = fprintf(jsonfh, "\"") < 0; while ((c = *v++) != '\0' && !eb) { /* skip escaping '/' since our use case does not require it */ - switch(c) { + switch (c) { case '"': eb = fprintf(jsonfh, "\\\"") < 0; break; -- 2.20.1