iterated over config parameters

pull/23/head
Gerard Wagener 2018-11-27 14:42:35 +01:00
parent 1fdcbdf1a8
commit 1687f5310a
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}