diff options
author | Joe <rbo@gmx.us> | 2023-12-26 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-26 20:20:20 +0100 |
commit | 245627d191cd4d7f67ddbaed2a73ee6b61c481f6 (patch) | |
tree | b9089d0bbad978de43710538647af74a14a5c111 /c_exec.go | |
parent | up (diff) | |
download | hardflip-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.go | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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) } |