summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinoguchi <inoguchi@openbsd.org>2017-01-25 16:53:21 +0000
committerinoguchi <inoguchi@openbsd.org>2017-01-25 16:53:21 +0000
commit0503f29a2559aa2ae6d64e6a532f58cb272218a8 (patch)
tree08abe9953ef854becf0043ca776b5229a81f0498
parentAs NET_LOCK() is a read/write lock, it can sleep in sotask(). So (diff)
downloadwireguard-openbsd-0503f29a2559aa2ae6d64e6a532f58cb272218a8.tar.xz
wireguard-openbsd-0503f29a2559aa2ae6d64e6a532f58cb272218a8.zip
Fix array initialization syntax for ocspcheck.c
Conformance to C99, and avoiding build break on VisualStudio and HP-UX. OK millert@
-rw-r--r--usr.sbin/ocspcheck/ocspcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ocspcheck/ocspcheck.c b/usr.sbin/ocspcheck/ocspcheck.c
index 252e8997f73..1483081f88a 100644
--- a/usr.sbin/ocspcheck/ocspcheck.c
+++ b/usr.sbin/ocspcheck/ocspcheck.c
@@ -505,7 +505,7 @@ main (int argc, char **argv)
{
char *host = NULL, *path = "/", *certfile = NULL, *outfile = NULL,
*cafile = NULL;
- struct addr addrs[MAX_SERVERS_DNS] = { };
+ struct addr addrs[MAX_SERVERS_DNS] = {0};
struct source sources[MAX_SERVERS_DNS];
int i, ch, staplefd = -1, nonce = 1;
ocsp_request *request = NULL;