From eb813829f9ffec760e1ed6c2c710c9f6aed55c2f Mon Sep 17 00:00:00 2001 From: Søren Holm Date: Sun, 27 Apr 2025 18:06:18 +0200 Subject: Make pointers to data that is not modified const. (#2117) This allow to pass constrant string i particular and constant data in general to nng functions. Co-authored-by: Garrett D'Amore --- src/nng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nng.c') diff --git a/src/nng.c b/src/nng.c index 68820675..58b1f25c 100644 --- a/src/nng.c +++ b/src/nng.c @@ -124,7 +124,7 @@ nng_recvmsg(nng_socket s, nng_msg **msgp, int flags) } int -nng_send(nng_socket s, void *buf, size_t len, int flags) +nng_send(nng_socket s, const void *buf, size_t len, int flags) { nng_msg *msg; int rv; -- cgit v1.2.3-70-g09d2