diff options
Diffstat (limited to '')
-rw-r--r-- | libenv_get_complete_list.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libenv_get_complete_list.c b/libenv_get_complete_list.c index 9a542c9..e40ed91 100644 --- a/libenv_get_complete_list.c +++ b/libenv_get_complete_list.c @@ -1,8 +1,7 @@ /* See LICENSE file for copyright and license details. */ +#ifndef TEST_C #include "common.h" -#define NCLASSWORDS 1U - #define _(E) ((uint64_t)1 << (E)) @@ -48,10 +47,11 @@ DECLARE(classes__exec__path, _(LIBENV_EXEC) | SU_SAFE | LOGIN_UNSAFE | PATH); #undef REMOTE_UNSAFE #undef PATH #undef DECLARE + #define V(S) {S, CLASSES} -static struct libenv_variable list[] = { +static struct libenv_variable list[] = { /* TODO validate */ #define CLASSES classes__display V("DISPLAY"), @@ -199,9 +199,11 @@ static struct libenv_variable list[] = { #undef V +#endif + const struct libenv_variable * -libenv_get_complete_list(size_t *nclasswords_out, size_t *count_out) /* TODO test */ +libenv_get_complete_list(size_t *nclasswords_out, size_t *count_out) { if (nclasswords_out) *nclasswords_out = NCLASSWORDS; |