From 04b0432dfd357c6562b01da9e9b9d5b8e0f434bc Mon Sep 17 00:00:00 2001 From: Alexander Turenko <alexander.turenko@tarantool.org> Date: Fri, 10 Apr 2020 03:25:36 +0300 Subject: [PATCH] popen: add const qualifier to popen_write_timeout The buffer is for reading, we're not intend to change it. Part of #4031 Acked-by: Cyrill Gorcunov <gorcunov@gmail.com> --- src/lib/core/popen.c | 2 +- src/lib/core/popen.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/core/popen.c b/src/lib/core/popen.c index ef2f8e2aad..f23eb5031e 100644 --- a/src/lib/core/popen.c +++ b/src/lib/core/popen.c @@ -280,7 +280,7 @@ stdX_str(unsigned int index) * Write data to the child stdin. */ int -popen_write_timeout(struct popen_handle *handle, void *buf, +popen_write_timeout(struct popen_handle *handle, const void *buf, size_t count, unsigned int flags, ev_tstamp timeout) { diff --git a/src/lib/core/popen.h b/src/lib/core/popen.h index 587d6f7dfa..97c581c13a 100644 --- a/src/lib/core/popen.h +++ b/src/lib/core/popen.h @@ -154,7 +154,7 @@ extern const char * popen_command(struct popen_handle *handle); extern int -popen_write_timeout(struct popen_handle *handle, void *buf, +popen_write_timeout(struct popen_handle *handle, const void *buf, size_t count, unsigned int flags, ev_tstamp timeout); -- GitLab