From: jsing Date: Sun, 28 Dec 2014 14:22:46 +0000 (+0000) Subject: Update options regress to match option function pointer change. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8ed0003c11dbd72a66ab40b0750e5bf7f0d8da82;p=openbsd Update options regress to match option function pointer change. --- 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 * @@ -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);