diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-18 01:59:39 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-18 09:48:17 +0200 |
commit | b0963cf8e2b31ac6a60c314bad148cd93d8eaca1 (patch) | |
tree | a12e648fc0f072215741d2aaa805c207abb83c16 /src/net.h | |
parent | process: preserve the exit code more (diff) | |
download | cimple-b0963cf8e2b31ac6a60c314bad148cd93d8eaca1.tar.gz cimple-b0963cf8e2b31ac6a60c314bad148cd93d8eaca1.zip |
net: don't copy data in struct buf
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -26,7 +26,7 @@ int buf_create_from_string(struct buf **, const char *); void buf_destroy(struct buf *); uint32_t buf_get_size(const struct buf *); -void *buf_get_data(const struct buf *); +const void *buf_get_data(const struct buf *); int net_send_buf(int fd, const struct buf *); int net_recv_buf(int fd, struct buf **); |