summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbcook <>2014-10-13 02:46:14 +0000
committerbcook <>2014-10-13 02:46:14 +0000
commit0dcf90d37015e94e560e71431735595427be713b (patch)
treefe844d1b23ff3110f712568be274c93e35fe07c6 /src
parent7b944af97196f9b4b28af3b73db474a465f413a6 (diff)
downloadopenbsd-0dcf90d37015e94e560e71431735595427be713b.tar.gz
openbsd-0dcf90d37015e94e560e71431735595427be713b.tar.bz2
openbsd-0dcf90d37015e94e560e71431735595427be713b.zip
prefer C99 array initialization syntax.
use C99 array initialization syntax for strict C compilers. from kinichiro, found building with HP/UX compiler ok deraadt@, guenther@
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/crl.c4
-rw-r--r--src/usr.bin/openssl/ecparam.c4
-rw-r--r--src/usr.bin/openssl/prime.c4
-rw-r--r--src/usr.bin/openssl/rand.c4
-rw-r--r--src/usr.bin/openssl/version.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/src/usr.bin/openssl/crl.c b/src/usr.bin/openssl/crl.c
index 91f3b6b4e8..0391e6e4dc 100644
--- a/src/usr.bin/openssl/crl.c
+++ b/src/usr.bin/openssl/crl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: crl.c,v 1.4 2014/09/17 02:20:45 lteo Exp $ */ 1/* $OpenBSD: crl.c,v 1.5 2014/10/13 02:46:14 bcook Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -198,7 +198,7 @@ static struct option crl_options[] = {
198 .type = OPTION_FLAG, 198 .type = OPTION_FLAG,
199 .opt.flag = &crl_config.verify, 199 .opt.flag = &crl_config.verify,
200 }, 200 },
201 {}, 201 {NULL},
202}; 202};
203 203
204static void 204static void
diff --git a/src/usr.bin/openssl/ecparam.c b/src/usr.bin/openssl/ecparam.c
index 7336360b35..b4d65ad2e5 100644
--- a/src/usr.bin/openssl/ecparam.c
+++ b/src/usr.bin/openssl/ecparam.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecparam.c,v 1.3 2014/09/01 14:26:01 jsing Exp $ */ 1/* $OpenBSD: ecparam.c,v 1.4 2014/10/13 02:46:14 bcook Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -245,7 +245,7 @@ struct option ecparam_options[] = {
245 .type = OPTION_FLAG, 245 .type = OPTION_FLAG,
246 .opt.flag = &ecparam_config.text, 246 .opt.flag = &ecparam_config.text,
247 }, 247 },
248 {}, 248 {NULL},
249}; 249};
250 250
251static void 251static void
diff --git a/src/usr.bin/openssl/prime.c b/src/usr.bin/openssl/prime.c
index 06414fde0d..d9237f9070 100644
--- a/src/usr.bin/openssl/prime.c
+++ b/src/usr.bin/openssl/prime.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: prime.c,v 1.2 2014/08/27 15:55:23 jsing Exp $ */ 1/* $OpenBSD: prime.c,v 1.3 2014/10/13 02:46:14 bcook Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2004 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2004 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -96,7 +96,7 @@ struct option prime_options[] = {
96 .type = OPTION_FLAG, 96 .type = OPTION_FLAG,
97 .opt.flag = &prime_config.safe, 97 .opt.flag = &prime_config.safe,
98 }, 98 },
99 {}, 99 {NULL},
100}; 100};
101 101
102static void 102static void
diff --git a/src/usr.bin/openssl/rand.c b/src/usr.bin/openssl/rand.c
index cfb8d763b0..dcc99e7392 100644
--- a/src/usr.bin/openssl/rand.c
+++ b/src/usr.bin/openssl/rand.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rand.c,v 1.3 2014/08/27 15:54:02 jsing Exp $ */ 1/* $OpenBSD: rand.c,v 1.4 2014/10/13 02:46:14 bcook Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -99,7 +99,7 @@ struct option rand_options[] = {
99 .type = OPTION_ARG, 99 .type = OPTION_ARG,
100 .opt.arg = &rand_config.outfile, 100 .opt.arg = &rand_config.outfile,
101 }, 101 },
102 {}, 102 {NULL},
103}; 103};
104 104
105static void 105static void
diff --git a/src/usr.bin/openssl/version.c b/src/usr.bin/openssl/version.c
index ee4792b249..db9c98e977 100644
--- a/src/usr.bin/openssl/version.c
+++ b/src/usr.bin/openssl/version.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: version.c,v 1.2 2014/08/30 15:59:43 jsing Exp $ */ 1/* $OpenBSD: version.c,v 1.3 2014/10/13 02:46:14 bcook Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -200,7 +200,7 @@ static struct option version_options[] = {
200 .type = OPTION_FLAG, 200 .type = OPTION_FLAG,
201 .opt.flag = &version_config.version, 201 .opt.flag = &version_config.version,
202 }, 202 },
203 {}, 203 {NULL},
204}; 204};
205 205
206static void 206static void