From: jonrumsey Date: Thu, 16 Feb 2023 20:46:49 +0000 (+0000) Subject: os400: correct Curl_os400_sendto() X-Git-Tag: curl-7_88_1~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85721574ed1fc9662b947f83d6316ddef837e88f;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/setup-os400.h b/lib/setup-os400.h index b718a7a768..759583466c 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); diff --git a/packages/OS400/os400sys.c b/packages/OS400/os400sys.c index d789519c99..c37cdb4e21 100644 --- a/packages/OS400/os400sys.c +++ b/packages/OS400/os400sys.c @@ -1265,7 +1265,7 @@ Curl_os400_bind(int sd, struct sockaddr *localaddr, int addrlen) int Curl_os400_sendto(int sd, char *buffer, int buflen, int flags, - struct sockaddr *dstaddr, int addrlen) + const struct sockaddr *dstaddr, int addrlen) { int i; struct sockaddr_storage laddr;