aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/net.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-18 01:59:39 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-18 09:48:17 +0200
commitb0963cf8e2b31ac6a60c314bad148cd93d8eaca1 (patch)
treea12e648fc0f072215741d2aaa805c207abb83c16 /src/net.h
parentprocess: preserve the exit code more (diff)
downloadcimple-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index e2fe61e..68ae311 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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 **);