diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-02-04 14:46:43 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-02-04 14:46:43 +0000 |
commit | 7094e840bf8b60e682d42771792532252c48eb2c (patch) | |
tree | cfb22967da2678616f651cb68bfa95670f5e068f /src | |
parent | b388a81848add19135306efcd15b4062a291f8c5 (diff) | |
download | strongswan-7094e840bf8b60e682d42771792532252c48eb2c.tar.bz2 strongswan-7094e840bf8b60e682d42771792532252c48eb2c.tar.xz |
use the new options_t class
Diffstat (limited to 'src')
-rwxr-xr-x | src/openac/openac.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/openac/openac.c b/src/openac/openac.c index fece3b3bf..6f19effe7 100755 --- a/src/openac/openac.c +++ b/src/openac/openac.c @@ -234,6 +234,8 @@ int main(int argc, char **argv) time_t validity = 0; int status = 1; + options_t *options = options_create(); + /* enable openac debugging hook */ dbg = openac_dbg; @@ -300,7 +302,7 @@ int main(int argc, char **argv) { snprintf(path, BUF_LEN, "%s/%s", OPENAC_PATH, optarg); } - if (!optionsfrom(path, &argc, &argv, optind)) + if (!options->from(options, path, &argc, &argv, optind)) { status = 1; goto end; @@ -509,5 +511,6 @@ end: free(serial.ptr); closelog(); dbg = dbg_default; + options->destroy(options); exit(status); } |