aboutsummaryrefslogtreecommitdiffstats
path: root/c_init.go
diff options
context:
space:
mode:
Diffstat (limited to 'c_init.go')
-rw-r--r--c_init.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/c_init.go b/c_init.go
index 51ce67a..ca26683 100644
--- a/c_init.go
+++ b/c_init.go
@@ -79,8 +79,9 @@ func c_recurse_data_dir(dir string, root string, lhost *HostList) {
}
}
-func c_load_data_dir(dir string) *HostList {
+func c_load_data_dir(dir string) (*HostList, *DirsList) {
lhost := HostList{}
+ ldirs := DirsList{}
c_recurse_data_dir("", dir + "/", &lhost)
- return &lhost
+ return &lhost, &ldirs
}