diff options
| author | Søren Holm <sgh@sgh.dk> | 2025-04-27 18:06:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-27 09:06:18 -0700 |
| commit | eb813829f9ffec760e1ed6c2c710c9f6aed55c2f (patch) | |
| tree | d34581a37c71d8e31040ac04eb64fbbb5ea20a36 /src/nng.c | |
| parent | 8c8563c45afc3e6d6339ea3e7c087bd773f84052 (diff) | |
| download | nng-eb813829f9ffec760e1ed6c2c710c9f6aed55c2f.tar.gz nng-eb813829f9ffec760e1ed6c2c710c9f6aed55c2f.tar.bz2 nng-eb813829f9ffec760e1ed6c2c710c9f6aed55c2f.zip | |
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 <garrett@damore.org>
Diffstat (limited to 'src/nng.c')
| -rw-r--r-- | src/nng.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
