aboutsummaryrefslogtreecommitdiff
path: root/src/conda.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-02-06 09:31:21 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-02-06 09:31:21 -0500
commit5e58d1a75edb3b057fe7291f3835c9ded076b0c8 (patch)
tree8863f36dac47a3747f06965b1403c34bcdfd5803 /src/conda.c
parent03d49ec76e6c4460627b8ebcbd065b0dfac551ae (diff)
downloadstasis-5e58d1a75edb3b057fe7291f3835c9ded076b0c8.tar.gz
Refactor std{out,err} to f_std{out,err}
* Bare stdout and stderr, even as struct members, tend to conflict with numerous libc implementations.
Diffstat (limited to 'src/conda.c')
-rw-r--r--src/conda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conda.c b/src/conda.c
index 40b40f9..acec709 100644
--- a/src/conda.c
+++ b/src/conda.c
@@ -82,7 +82,7 @@ int conda_activate(const char *root, const char *env_name) {
close(fd);
// Configure our process for output to a log file
- strcpy(proc.stdout, logfile);
+ strcpy(proc.f_stdout, logfile);
// Verify conda's init scripts are available
if (access(path_conda, F_OK) < 0) {
@@ -111,7 +111,7 @@ int conda_activate(const char *root, const char *env_name) {
// 1. Extract the environment keys and values from the sub-shell
// 2. Apply it to OMC's runtime environment
// 3. Now we're ready to execute conda commands anywhere
- fp = fopen(proc.stdout, "r");
+ fp = fopen(proc.f_stdout, "r");
if (!fp) {
perror(logfile);
return -1;