]> granicus.if.org Git - curl/commit
cleanup: remove the 'numsocks' argument used in many places
authorDaniel Stenberg <daniel@haxx.se>
Tue, 30 Jul 2019 09:02:03 +0000 (11:02 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 30 Jul 2019 21:16:44 +0000 (23:16 +0200)
commita55faf33d4b868c8e8173e7aabfe1e286a1a7658
tree415811788599dee37eed1e52b7c7595e794e3315
parentcb542ac4d085e9446a9dfc6632fad9a851b507fe
cleanup: remove the 'numsocks' argument used in many places

It was used (intended) to pass in the size of the 'socks' array that is
also passed to these functions, but was rarely actually checked/used and
the array is defined to a fixed size of MAX_SOCKSPEREASYHANDLE entries
that should be used instead.

Closes #4169
27 files changed:
lib/asyn-ares.c
lib/asyn-thread.c
lib/asyn.h
lib/doh.h
lib/ftp.c
lib/hostip.c
lib/hostip.h
lib/http.c
lib/http2.c
lib/imap.c
lib/multi.c
lib/pingpong.c
lib/pingpong.h
lib/pop3.c
lib/rtsp.c
lib/smb.c
lib/smtp.c
lib/ssh-libssh.c
lib/ssh.c
lib/tftp.c
lib/transfer.c
lib/transfer.h
lib/url.c
lib/url.h
lib/urldata.h
lib/vtls/vtls.c
lib/vtls/vtls.h