passing options via pointers in mscp_ssh_opts

We do not need static buf because we have already dropped python biding
support.
This commit is contained in:
Ryo Nakamura
2024-02-05 21:13:11 +09:00
parent c95e6a4fff
commit 9908fb309d
4 changed files with 50 additions and 84 deletions

View File

@@ -258,7 +258,7 @@ struct mscp *mscp_init(const char *remote_host, int direction,
}
m->direction = direction;
if (strlen(o->coremask) > 0) {
if (o->coremask) {
if (expand_coremask(o->coremask, &m->cores, &m->nr_cores) < 0)
goto free_out;
char b[512], c[8];