centralized filename calculation
[citadel.git] / citadel / aidepost.c
index 0824189497432b6c29546884b3e374e9af0ba75d..3e60dc97664b97b49aba54b47c66574674534300 100644 (file)
@@ -23,6 +23,7 @@
 #include <errno.h>
 #include <string.h>
 #include "citadel.h"
+#include "citadel_dirs.h"
 #include "config.h"
 
 #ifndef HAVE_SNPRINTF
@@ -77,6 +78,15 @@ int main(int argc, char **argv)
        int ch;
        int i;
 
+       int relh=0;
+       int home=0;
+       char relhome[PATH_MAX]="";
+       char ctdldir[PATH_MAX]=CTDLDIR;
+
+       /* TODO: should we be able to calculate relative dirs? */
+       calc_dirs_n_files(relh, home, relhome, ctdldir);
+
+
        get_config();
 
        strcpy(target_room, "Aide");