aboutsummaryrefslogtreecommitdiff
path: root/src/lib/process
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-12-07 02:09:22 +0100
committerNick Mathewson <nickm@torproject.org>2018-12-17 16:39:28 -0500
commitcacdd290872420d51f880d75466f6d6e22430466 (patch)
tree11234b946d00c16fa485117749a4ec87da61a065 /src/lib/process
parentec2ae3ed8b542950dc774223607f14f524375a50 (diff)
downloadtor-cacdd290872420d51f880d75466f6d6e22430466.tar.gz
tor-cacdd290872420d51f880d75466f6d6e22430466.zip
Use `const char *` instead of `char *` for line parameter for process callbacks.
This patch changes the type definition of the process callbacks to use `const char *` instead of `char *`. See: https://bugs.torproject.org/28179
Diffstat (limited to 'src/lib/process')
-rw-r--r--src/lib/process/process.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/process/process.h b/src/lib/process/process.h
index 4b0fae4250..179db19aeb 100644
--- a/src/lib/process/process.h
+++ b/src/lib/process/process.h
@@ -54,7 +54,7 @@ typedef uint64_t process_exit_code_t;
typedef uint64_t process_pid_t;
typedef void (*process_read_callback_t)(process_t *,
- char *,
+ const char *,
size_t);
typedef bool
(*process_exit_callback_t)(process_t *, process_exit_code_t);