From d822998a0d3253bb5e5fd76d583f224cc8712045 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 26 Apr 2023 17:39:20 +0000 Subject: [PATCH] Whitespace "please fix" json --- usr.sbin/bgpctl/json.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/bgpctl/json.c b/usr.sbin/bgpctl/json.c index fbb0207375d..82dbbf56246 100644 --- a/usr.sbin/bgpctl/json.c +++ b/usr.sbin/bgpctl/json.c @@ -1,4 +1,4 @@ -/* $OpenBSD: json.c,v 1.3 2022/08/31 12:13:59 claudio Exp $ */ +/* $OpenBSD: json.c,v 1.4 2023/04/26 17:39:20 tb Exp $ */ /* * Copyright (c) 2020 Claudio Jeker @@ -112,7 +112,7 @@ json_do_array(const char *name) if (++level >= JSON_MAX_STACK) errx(1, "json stack too deep"); - + stack[level].name = name; stack[level].type = ARRAY; stack[level].count = 0; @@ -135,7 +135,7 @@ json_do_object(const char *name) if (++level >= JSON_MAX_STACK) errx(1, "json stack too deep"); - + stack[level].name = name; stack[level].type = OBJECT; stack[level].count = 0; @@ -185,7 +185,7 @@ json_do_hexdump(const char *name, void *buf, size_t len) do_comma_indent(); do_name(name); printf("\""); - for (i=0; i < len; i++) + for (i = 0; i < len; i++) printf("%02x", *(data+i)); printf("\""); } -- 2.20.1