Skip to content
Snippets Groups Projects
Commit 04b0432d authored by Alexander Turenko's avatar Alexander Turenko Committed by Kirill Yukhin
Browse files

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: default avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 07a07b3c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment