aboutsummaryrefslogtreecommitdiffstats
path: root/c_exec.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-26 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-26 20:20:20 +0100
commit245627d191cd4d7f67ddbaed2a73ee6b61c481f6 (patch)
treeb9089d0bbad978de43710538647af74a14a5c111 /c_exec.go
parentup (diff)
downloadhardflip-245627d191cd4d7f67ddbaed2a73ee6b61c481f6.tar.gz
hardflip-245627d191cd4d7f67ddbaed2a73ee6b61c481f6.tar.bz2
hardflip-245627d191cd4d7f67ddbaed2a73ee6b61c481f6.tar.xz
hardflip-245627d191cd4d7f67ddbaed2a73ee6b61c481f6.tar.zst
hardflip-245627d191cd4d7f67ddbaed2a73ee6b61c481f6.zip
it builds at least
Diffstat (limited to 'c_exec.go')
-rw-r--r--c_exec.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/c_exec.go b/c_exec.go
index 494f485..cd7a11c 100644
--- a/c_exec.go
+++ b/c_exec.go
@@ -128,11 +128,10 @@ func c_format_rdp(host *HostNode) []string {
return cmd_fmt
}
-func c_format_cmd(id uint64, lhost *HostList) {
- host := lhost.head
+func c_format_cmd(dir_id, host_id uint64, ldirs *DirsList) {
var cmd_fmt []string
+ host := ldirs.sel(dir_id).lhost.sel(host_id)
- host = lhost.sel(id)
if host == nil {
c_die("host id not found", nil)
}
@@ -146,9 +145,9 @@ func c_format_cmd(id uint64, lhost *HostList) {
c_exec_cmd(cmd_fmt)
}
-func c_exec(id uint64, lhost *HostList) {
- if lhost.head == nil {
+func c_exec(dir_id, host_id uint64, ldirs *DirsList) {
+ if ldirs.head == nil {
return
}
- c_format_cmd(id, lhost)
+ c_format_cmd(dir_id, host_id, ldirs)
}