diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 14:06:55 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 14:06:55 +0200 |
commit | f855c5b5bbbc6d5436741fd8108be64825a3c76b (patch) | |
tree | 0ee1242bc21dc75a12fae03a5bb211fe10c89625 /lib/tests/test_ini1.c | |
parent | 8ef825d85fb4d09c32ca44c545d6eb8d995ddea4 (diff) | |
download | monitoring-plugins-f855c5b5bbbc6d5436741fd8108be64825a3c76b.tar.gz |
general refactorin in lib, more local variables, real booleans
Diffstat (limited to 'lib/tests/test_ini1.c')
-rw-r--r-- | lib/tests/test_ini1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tests/test_ini1.c b/lib/tests/test_ini1.c index 3792d142..de983764 100644 --- a/lib/tests/test_ini1.c +++ b/lib/tests/test_ini1.c | |||
@@ -50,11 +50,10 @@ char *list2str(np_arg_list *optlst) { | |||
50 | } | 50 | } |
51 | 51 | ||
52 | int main(int argc, char **argv) { | 52 | int main(int argc, char **argv) { |
53 | char *optstr = NULL; | ||
54 | 53 | ||
55 | plan_tests(12); | 54 | plan_tests(12); |
56 | 55 | ||
57 | optstr = list2str(np_get_defaults("section@./config-tiny.ini", "check_disk")); | 56 | char *optstr = list2str(np_get_defaults("section@./config-tiny.ini", "check_disk")); |
58 | ok(!strcmp(optstr, "--one=two --Foo=Bar --this=Your Mother! --blank"), | 57 | ok(!strcmp(optstr, "--one=two --Foo=Bar --this=Your Mother! --blank"), |
59 | "config-tiny.ini's section as expected"); | 58 | "config-tiny.ini's section as expected"); |
60 | my_free(optstr); | 59 | my_free(optstr); |