diff options
author | 2014-12-28 14:22:46 +0000 | |
---|---|---|
committer | 2014-12-28 14:22:46 +0000 | |
commit | 8ed0003c11dbd72a66ab40b0750e5bf7f0d8da82 (patch) | |
tree | 7c11c47306fcb663460e4a95a0d54d232d59501d | |
parent | Provide two different function pointers for option function callbacks. This (diff) | |
download | wireguard-openbsd-8ed0003c11dbd72a66ab40b0750e5bf7f0d8da82.tar.xz wireguard-openbsd-8ed0003c11dbd72a66ab40b0750e5bf7f0d8da82.zip |
Update options regress to match option function pointer change.
-rw-r--r-- | regress/usr.bin/openssl/options/optionstest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/usr.bin/openssl/options/optionstest.c b/regress/usr.bin/openssl/options/optionstest.c index 8df208dc844..adfd49b4152 100644 --- a/regress/usr.bin/openssl/options/optionstest.c +++ b/regress/usr.bin/openssl/options/optionstest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: optionstest.c,v 1.1 2014/12/28 14:01:33 jsing Exp $ */ +/* $OpenBSD: optionstest.c,v 1.2 2014/12/28 14:22:46 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -28,7 +28,7 @@ BIO *bio_err; CONF *config; -static int argfunc(struct option *opt, char *arg); +static int argfunc(char *arg); static struct { char *arg; @@ -44,7 +44,7 @@ static struct option test_options[] = { { .name = "argfunc", .type = OPTION_ARG_FUNC, - .func = argfunc, + .opt.argfunc = argfunc, }, { .name = "flag", @@ -156,7 +156,7 @@ struct options_test options_tests[] = { (sizeof(options_tests) / sizeof(*options_tests)) int -argfunc(struct option *opt, char *arg) +argfunc(char *arg) { test_config.arg = arg; return (0); |