Skip to content

Commit

Permalink
Update pointer casts to match MinGW's prototypes for spawn{p,ve}
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFluet committed Aug 9, 2024
1 parent 7a85b3b commit f2a6ae5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions runtime/basis/MLton/Process/spawne.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ C_Errno_t(C_PId_t) MLton_Process_spawne (NullString8_t pNStr,
eSaved = env[eLen - 1];
env[eLen - 1] = NULL;
res = spawnve (SPAWN_MODE, path,
(const char * const *)args,
(const char * const *)env);
(char * const *)args,
(char * const *)env);
/* spawnve failed */
args[aLen - 1] = aSaved;
env[eLen - 1] = eSaved;
Expand Down
2 changes: 1 addition & 1 deletion runtime/basis/MLton/Process/spawnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ C_Errno_t(C_PId_t) MLton_Process_spawnp (NullString8_t pNStr,
aSaved = args[aLen - 1];
args[aLen - 1] = NULL;
res = spawnvp (SPAWN_MODE, path,
(const char * const *)args);
(char * const *)args);
/* spawnvp failed */
args[aLen - 1] = aSaved;
return (C_Errno_t(C_PId_t))res;
Expand Down

0 comments on commit f2a6ae5

Please sign in to comment.