Skip to content

gskit_send() does not match declaration #6569

Description

@jonrumsey

I did this

Build libcurl with GSKIT support, gskit.c failed;
CZM0068(30) Operation between types "int()(struct Curl_easy,int,const void*,unsigned int,enum {...})" and "int()(struct connectdata*,int,const void*,unsigned int,enum {...}*)" is not allowed.

    conn->send[sockindex] = gskit_send;

urldata.h prototype for Curl_send is;

    /* return the count of bytes sent, or -1 on error */
    typedef ssize_t (Curl_send)(struct Curl_easy *data,   /* transfer */
                        int sockindex,            /* socketindex */
                        const void *buf,          /* data to write */
                        size_t len,               /* max amount to write */
                        CURLcode *err);           /* error to return */

so gskit_send() needs to pick connectdata from Curl_easy like gskit_recv() does.

I expected the following

Clean build

curl/libcurl version

Curl 7.75.0

operating system

OS400 V7R2M0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions