From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp49.i.mail.ru (smtp49.i.mail.ru [94.100.177.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id C77FA4696C9 for ; Fri, 10 Apr 2020 05:51:16 +0300 (MSK) From: Alexander Turenko Date: Fri, 10 Apr 2020 05:50:45 +0300 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 07/13] popen: add const qualifier to popen_write_timeout List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cyrill Gorcunov Cc: tarantool-patches@dev.tarantool.org The buffer is for reading, we're not intend to change it. Part of #4031 --- 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 62920e0c8..dbc700287 100644 --- a/src/lib/core/popen.c +++ b/src/lib/core/popen.c @@ -281,7 +281,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 587d6f7df..97c581c13 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); -- 2.25.0