Skip to content
Snippets Groups Projects
Commit bc441bef authored by Morris Jette's avatar Morris Jette
Browse files

Add typecast to prevent build warning

parent be703c47
No related branches found
No related tags found
No related merge requests found
...@@ -1747,7 +1747,7 @@ _wait_for_any_task(slurmd_job_t *job, bool waitflag) ...@@ -1747,7 +1747,7 @@ _wait_for_any_task(slurmd_job_t *job, bool waitflag)
/* Modify copy of job's environment. Do not alter in /* Modify copy of job's environment. Do not alter in
* place or concurrent searches of the environment can * place or concurrent searches of the environment can
* generate invalid memory references. */ * generate invalid memory references. */
job->envtp->env = env_array_copy(job->env); job->envtp->env = env_array_copy((const char **) job->env);
setup_env(job->envtp, false); setup_env(job->envtp, false);
tmp_env = job->env; tmp_env = job->env;
job->env = job->envtp->env; job->env = job->envtp->env;
......
...@@ -368,7 +368,7 @@ exec_task(slurmd_job_t *job, int i) ...@@ -368,7 +368,7 @@ exec_task(slurmd_job_t *job, int i)
/* Modify copy of job's environment. Do not alter in place or /* Modify copy of job's environment. Do not alter in place or
* concurrent searches of the environment can generate invalid memory * concurrent searches of the environment can generate invalid memory
* references. */ * references. */
job->envtp->env = env_array_copy(job->env); job->envtp->env = env_array_copy((const char **) job->env);
setup_env(job->envtp, false); setup_env(job->envtp, false);
setenvf(&job->envtp->env, "SLURMD_NODENAME", "%s", conf->node_name); setenvf(&job->envtp->env, "SLURMD_NODENAME", "%s", conf->node_name);
tmp_env = job->env; tmp_env = job->env;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment