strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b388a81
)
use the new options_t class
author
Andreas Steffen
<andreas.steffen@strongswan.org>
Mon, 4 Feb 2008 14:46:43 +0000
(14:46 -0000)
committer
Andreas Steffen
<andreas.steffen@strongswan.org>
Mon, 4 Feb 2008 14:46:43 +0000
(14:46 -0000)
src/openac/openac.c
patch
|
blob
|
history
diff --git
a/src/openac/openac.c
b/src/openac/openac.c
index
fece3b3
..
6f19eff
100755
(executable)
--- 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 (!options
from(
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);
}