diff options
author | Sumit Bose <sbose@redhat.com> | 2010-10-05 14:46:14 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-10-13 07:56:20 -0400 |
commit | daa53f46d3ddcba0cbe2d23251c250794e576cf1 (patch) | |
tree | 30eafedcff22fc67e5ae4bf532940fbb26c15c14 | |
parent | 39b0adeaaf2429c7cbad045f7f8a79d51d02bee5 (diff) | |
download | sssd-daa53f46d3ddcba0cbe2d23251c250794e576cf1.tar.gz sssd-daa53f46d3ddcba0cbe2d23251c250794e576cf1.tar.xz sssd-daa53f46d3ddcba0cbe2d23251c250794e576cf1.zip |
Use POPT_TABLEEND to close option table
-rw-r--r-- | src/tests/auth-tests.c | 2 | ||||
-rw-r--r-- | src/tests/krb5_utils-tests.c | 2 | ||||
-rw-r--r-- | src/tests/simple_access-tests.c | 2 | ||||
-rw-r--r-- | src/tests/stress-tests.c | 4 | ||||
-rw-r--r-- | src/tests/strtonum-tests.c | 2 | ||||
-rw-r--r-- | src/tests/sysdb-tests.c | 2 | ||||
-rw-r--r-- | src/tests/util-tests.c | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/src/tests/auth-tests.c b/src/tests/auth-tests.c index bae0794c3..abdc874a6 100644 --- a/src/tests/auth-tests.c +++ b/src/tests/auth-tests.c @@ -305,7 +305,7 @@ int main(int argc, const char *argv[]) struct poptOption long_options[] = { POPT_AUTOHELP SSSD_MAIN_OPTS - { NULL } + POPT_TABLEEND }; pc = poptGetContext(argv[0], argc, argv, long_options, 0); diff --git a/src/tests/krb5_utils-tests.c b/src/tests/krb5_utils-tests.c index 54b18cb1e..d5d1f0943 100644 --- a/src/tests/krb5_utils-tests.c +++ b/src/tests/krb5_utils-tests.c @@ -639,7 +639,7 @@ int main(int argc, const char *argv[]) struct poptOption long_options[] = { POPT_AUTOHELP SSSD_MAIN_OPTS - { NULL } + POPT_TABLEEND }; pc = poptGetContext(argv[0], argc, argv, long_options, 0); diff --git a/src/tests/simple_access-tests.c b/src/tests/simple_access-tests.c index f1d3775a3..c9bf4ea54 100644 --- a/src/tests/simple_access-tests.c +++ b/src/tests/simple_access-tests.c @@ -147,7 +147,7 @@ int main(int argc, const char *argv[]) struct poptOption long_options[] = { POPT_AUTOHELP SSSD_MAIN_OPTS - { NULL } + POPT_TABLEEND }; pc = poptGetContext(argv[0], argc, argv, long_options, 0); diff --git a/src/tests/stress-tests.c b/src/tests/stress-tests.c index 3b5373579..b645c25c1 100644 --- a/src/tests/stress-tests.c +++ b/src/tests/stress-tests.c @@ -214,7 +214,7 @@ int main(int argc, const char *argv[]) struct poptOption long_options[] = { POPT_AUTOHELP { "groups", 'g', POPT_ARG_NONE, &pc_groups, 0, - "Lookup in groups instead of users" }, + "Lookup in groups instead of users", NULL }, { "prefix", '\0', POPT_ARG_STRING, &pc_prefix, 0, "The username prefix", NULL }, { "start", '\0', POPT_ARG_INT | POPT_ARGFLAG_SHOW_DEFAULT, @@ -227,7 +227,7 @@ int main(int argc, const char *argv[]) "Fail on not getting the requested NSS data (default: No)", NULL }, { "verbose", 'v', POPT_ARG_NONE, 0, 'v', - "Be verbose" }, + "Be verbose", NULL }, POPT_TABLEEND }; diff --git a/src/tests/strtonum-tests.c b/src/tests/strtonum-tests.c index a7131c1b5..6c260189c 100644 --- a/src/tests/strtonum-tests.c +++ b/src/tests/strtonum-tests.c @@ -431,7 +431,7 @@ int main(int argc, const char *argv[]) { struct poptOption long_options[] = { POPT_AUTOHELP SSSD_MAIN_OPTS - { NULL } + POPT_TABLEEND }; pc = poptGetContext(argv[0], argc, argv, long_options, 0); diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index 98d9a20d4..4fc455d9a 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -2360,7 +2360,7 @@ int main(int argc, const char *argv[]) { SSSD_MAIN_OPTS {"no-cleanup", 'n', POPT_ARG_NONE, &no_cleanup, 0, _("Do not delete the test database after a test run"), NULL }, - { NULL } + POPT_TABLEEND }; pc = poptGetContext(argv[0], argc, argv, long_options, 0); diff --git a/src/tests/util-tests.c b/src/tests/util-tests.c index d8d3800fd..bfc48bbac 100644 --- a/src/tests/util-tests.c +++ b/src/tests/util-tests.c @@ -200,7 +200,7 @@ int main(int argc, const char *argv[]) struct poptOption long_options[] = { POPT_AUTOHELP SSSD_MAIN_OPTS - { NULL } + POPT_TABLEEND }; pc = poptGetContext(argv[0], argc, argv, long_options, 0); |