From: claudio Date: Thu, 22 Jun 2023 09:08:02 +0000 (+0000) Subject: KNF X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=26fc0cbcc3a2e62df0cb0641b813df7ac92d6147;p=openbsd KNF --- diff --git a/usr.sbin/rpki-client/json.c b/usr.sbin/rpki-client/json.c index 970439babbf..3e6e5314ba5 100644 --- a/usr.sbin/rpki-client/json.c +++ b/usr.sbin/rpki-client/json.c @@ -1,4 +1,4 @@ -/* $OpenBSD: json.c,v 1.3 2023/06/05 14:19:13 claudio Exp $ */ +/* $OpenBSD: json.c,v 1.4 2023/06/22 09:08:02 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;