summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acme-client/json.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2016-09-13 16:04:51 +0000
committerderaadt <deraadt@openbsd.org>2016-09-13 16:04:51 +0000
commita869955907a92e9a9bc4920ebf06fad69f0bf35e (patch)
treecbec3fadd22cac172121d05ad4bc7e62c7691ee8 /usr.sbin/acme-client/json.c
parentRAND_status() and RAND_seed() are not needed, this is 2016. (diff)
downloadwireguard-openbsd-a869955907a92e9a9bc4920ebf06fad69f0bf35e.tar.xz
wireguard-openbsd-a869955907a92e9a9bc4920ebf06fad69f0bf35e.zip
Inconsistant use of case (value): idiom drives me nuts, I have no idea
what purpose it was intended to serve.
Diffstat (limited to 'usr.sbin/acme-client/json.c')
-rw-r--r--usr.sbin/acme-client/json.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/acme-client/json.c b/usr.sbin/acme-client/json.c
index da98bd69b2f..1cf68a6e84a 100644
--- a/usr.sbin/acme-client/json.c
+++ b/usr.sbin/acme-client/json.c
@@ -1,4 +1,4 @@
-/* $Id: json.c,v 1.3 2016/09/01 00:35:22 florian Exp $ */
+/* $Id: json.c,v 1.4 2016/09/13 16:04:51 deraadt Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -84,9 +84,9 @@ build(struct parse *parse, struct jsmnn **np,
n->type = t->type;
switch (t->type) {
- case (JSMN_STRING):
+ case JSMN_STRING:
/* FALLTHROUGH */
- case (JSMN_PRIMITIVE):
+ case JSMN_PRIMITIVE:
n->fields = 1;
n->d.str = strndup
(js + t->start,
@@ -94,7 +94,7 @@ build(struct parse *parse, struct jsmnn **np,
if (NULL == n->d.str)
break;
return (1);
- case (JSMN_OBJECT):
+ case JSMN_OBJECT:
n->fields = t->size;
n->d.obj = calloc(n->fields,
sizeof(struct jsmnp));
@@ -117,7 +117,7 @@ build(struct parse *parse, struct jsmnn **np,
if (i < (size_t)t->size)
break;
return (j + 1);
- case (JSMN_ARRAY):
+ case JSMN_ARRAY:
n->fields = t->size;
n->d.array = calloc(n->fields,
sizeof(struct jsmnn *));