mirror of
https://github.com/curl/curl.git
synced 2026-07-29 23:28:08 +03:00
urldata: make 'use_port' an usigned short
... instead of a long. It is already enforced to not attempt to set any value outside of 16 bits unsigned. Closes #9099
This commit is contained in:
parent
ccc8092b05
commit
1d85d2e4f9
4 changed files with 8 additions and 7 deletions
|
|
@ -42,8 +42,9 @@ protocol.
|
|||
Usually, you just let the URL decide which port to use but this allows the
|
||||
application to override that.
|
||||
|
||||
While this option accepts a 'long', a port number is usually a 16 bit number
|
||||
and therefore using a port number over 65535 will cause a runtime error.
|
||||
While this option accepts a 'long', a port number is an unsigned 16 bit number
|
||||
and therefore using a port number lower than zero or over 65535 will cause a
|
||||
\fBCURLE_BAD_FUNCTION_ARGUMENT\fP error.
|
||||
.SH DEFAULT
|
||||
By default this is 0 which makes it not used. This also makes port number zero
|
||||
impossible to set with this API.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue