diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2020-02-16 19:14:53 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2020-02-16 21:14:57 +0100 |
commit | d98d48cdc25b8b9c13c6bd310b58576517cdded1 (patch) | |
tree | d99f18538b812a08bed4a80ccb1792622495f665 /src/execute.hpp | |
parent | 8fc6d4adce6463af07eb5d559e83e3a5d95c9179 (diff) | |
download | ccache-d98d48cdc25b8b9c13c6bd310b58576517cdded1.tar.gz |
Const-ify context parameters where appropriate
Diffstat (limited to 'src/execute.hpp')
-rw-r--r-- | src/execute.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/execute.hpp b/src/execute.hpp index 73ffa131..10702de5 100644 --- a/src/execute.hpp +++ b/src/execute.hpp @@ -23,6 +23,7 @@ struct Context; int execute(char** argv, int fd_out, int fd_err, pid_t* pid); -char* find_executable(Context& ctx, const char* name, const char* exclude_name); +char* +find_executable(const Context& ctx, const char* name, const char* exclude_name); void print_command(FILE* fp, char** argv); char* format_command(const char* const* argv); |