diff options
author | jonrumsey <jrumsey@uk.ibm.com> | 2023-02-16 20:46:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-02-17 14:49:51 +0100 |
commit | 85721574ed1fc9662b947f83d6316ddef837e88f (patch) | |
tree | 7112f2fec64ec77a24a8fa4089a01acac9d43f56 /lib/setup-os400.h | |
parent | 216e4b1fb6d549f007014fecdd122ac777000833 (diff) | |
download | curl-85721574ed1fc9662b947f83d6316ddef837e88f.tar.gz |
os400: correct Curl_os400_sendto()
Add const qualifier to 5th argument of Curl_os400_sendto()
Make OS400 wrapper for sendto match the normal prototype of sendto()
with a const qualifier.
Fixes #10539
Closes #10548
Diffstat (limited to 'lib/setup-os400.h')
-rw-r--r-- | lib/setup-os400.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup-os400.h b/lib/setup-os400.h index b718a7a76..759583466 100644 --- a/lib/setup-os400.h +++ b/lib/setup-os400.h @@ -205,7 +205,7 @@ extern OM_uint32 Curl_gss_delete_sec_context_a(OM_uint32 * minor_status, extern int Curl_os400_connect(int sd, struct sockaddr *destaddr, int addrlen); extern int Curl_os400_bind(int sd, struct sockaddr *localaddr, int addrlen); extern int Curl_os400_sendto(int sd, char *buffer, int buflen, int flags, - struct sockaddr *dstaddr, int addrlen); + const struct sockaddr *dstaddr, int addrlen); extern int Curl_os400_recvfrom(int sd, char *buffer, int buflen, int flags, struct sockaddr *fromaddr, int *addrlen); extern int Curl_os400_getpeername(int sd, struct sockaddr *addr, int *addrlen); |