From 1687f5310a4643e6bab46bbd63088562b5e45612 Mon Sep 17 00:00:00 2001 From: Gerard Wagener Date: Tue, 27 Nov 2018 14:42:35 +0100 Subject: [PATCH] iterated over config parameters --- client/d4.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/d4.c b/client/d4.c index 55546d5..4d8beda 100644 --- a/client/d4.c +++ b/client/d4.c @@ -8,6 +8,14 @@ //Returns -1 on error, 0 otherwise int d4_load_config(d4_t* d4) { + int i; + char *buf; + buf=calloc(1,2*FILENAME_MAX); + if (buf) { + for (i=0; i < ND4PARAMS; i++) { + snprintf(buf,2*FILENAME_MAX, "%s/%s",d4->confdir, d4params[i]); + } + } return -1; }