summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/version.c
diff options
context:
space:
mode:
authorjsing <>2014-12-28 14:21:42 +0000
committerjsing <>2014-12-28 14:21:42 +0000
commita8ff639ef64a4a39745c3e48767ad1ae0daa8aae (patch)
tree9d3a06168c584d1ca915a233182c758c542e7f67 /src/usr.bin/openssl/version.c
parent070fa2ca836397fc6db2744ec5f57833916b6511 (diff)
downloadopenbsd-a8ff639ef64a4a39745c3e48767ad1ae0daa8aae.tar.gz
openbsd-a8ff639ef64a4a39745c3e48767ad1ae0daa8aae.tar.bz2
openbsd-a8ff639ef64a4a39745c3e48767ad1ae0daa8aae.zip
Provide two different function pointers for option function callbacks. This
allows for simpler code in the common cases and will allow for further extension to support the complex cases.
Diffstat (limited to 'src/usr.bin/openssl/version.c')
-rw-r--r--src/usr.bin/openssl/version.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr.bin/openssl/version.c b/src/usr.bin/openssl/version.c
index db9c98e977..953d0c3afe 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.3 2014/10/13 02:46:14 bcook Exp $ */ 1/* $OpenBSD: version.c,v 1.4 2014/12/28 14:21:42 jsing 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 *
@@ -145,7 +145,7 @@ static struct {
145} version_config; 145} version_config;
146 146
147static int 147static int
148version_all_opts(struct option *opt, char *arg) 148version_all_opts(void)
149{ 149{
150 version_config.cflags = 1; 150 version_config.cflags = 1;
151 version_config.date = 1; 151 version_config.date = 1;
@@ -162,7 +162,7 @@ static struct option version_options[] = {
162 .name = "a", 162 .name = "a",
163 .desc = "All information (same as setting all other flags)", 163 .desc = "All information (same as setting all other flags)",
164 .type = OPTION_FUNC, 164 .type = OPTION_FUNC,
165 .func = version_all_opts, 165 .opt.func = version_all_opts,
166 }, 166 },
167 { 167 {
168 .name = "b", 168 .name = "b",