diff options
author | setser <setser@yandex-team.ru> | 2022-05-09 00:13:37 +0300 |
---|---|---|
committer | setser <setser@yandex-team.ru> | 2022-05-09 00:13:37 +0300 |
commit | e87e3fc8d0e04eb7ba3eee221bb91613b527ad85 (patch) | |
tree | 5279c128bdbdf902b9a08d9fae8e55b91910a553 /contrib/libs/libxml/nanoftp.c | |
parent | f4f3e4024a1f32bd0bc3fa20239025a1b179e42d (diff) | |
download | ydb-e87e3fc8d0e04eb7ba3eee221bb91613b527ad85.tar.gz |
Update libxml to 2.9.13
ref:f572491d236694e847142c36f0f5546c649e05d7
Diffstat (limited to 'contrib/libs/libxml/nanoftp.c')
-rw-r--r-- | contrib/libs/libxml/nanoftp.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/contrib/libs/libxml/nanoftp.c b/contrib/libs/libxml/nanoftp.c index 54fa026d1b..18c1ce4377 100644 --- a/contrib/libs/libxml/nanoftp.c +++ b/contrib/libs/libxml/nanoftp.c @@ -158,7 +158,7 @@ int have_ipv6(void) { /** * xmlFTPErrMemory: - * @extra: extra informations + * @extra: extra information * * Handle an out of memory condition */ @@ -172,7 +172,7 @@ xmlFTPErrMemory(const char *extra) * xmlNanoFTPInit: * * Initialize the FTP protocol layer. - * Currently it just checks for proxy informations, + * Currently it just checks for proxy information, * and get the hostname */ @@ -218,7 +218,7 @@ xmlNanoFTPInit(void) { /** * xmlNanoFTPCleanup: * - * Cleanup the FTP protocol layer. This cleanup proxy informations. + * Cleanup the FTP protocol layer. This cleanup proxy information. */ void @@ -250,7 +250,7 @@ xmlNanoFTPCleanup(void) { * @passwd: the proxy password * @type: the type of proxy 1 for using SITE, 2 for USER a@b * - * Setup the FTP proxy informations. + * Setup the FTP proxy information. * This can also be done by using ftp_proxy ftp_proxy_user and * ftp_proxy_password environment variables. */ @@ -412,7 +412,7 @@ xmlNanoFTPUpdateURL(void *ctx, const char *URL) { * (Re)Initialize the FTP Proxy context by parsing the URL and finding * the protocol host port it indicates. * Should be like ftp://myproxy/ or ftp://myproxy:3128/ - * A NULL URL cleans up proxy informations. + * A NULL URL cleans up proxy information. */ void @@ -1251,8 +1251,7 @@ xmlNanoFTPConnectTo(const char *server, int port) { xmlNanoFTPFreeCtxt(ctxt); return(NULL); } - if (port != 0) - ctxt->port = port; + ctxt->port = port; res = xmlNanoFTPConnect(ctxt); if (res < 0) { xmlNanoFTPFreeCtxt(ctxt); @@ -1268,7 +1267,7 @@ xmlNanoFTPConnectTo(const char *server, int port) { * * Tries to change the remote directory * - * Returns -1 incase of error, 1 if CWD worked, 0 if it failed + * Returns -1 in case of error, 1 if CWD worked, 0 if it failed */ int @@ -1317,7 +1316,7 @@ xmlNanoFTPCwd(void *ctx, const char *directory) { * * Tries to delete an item (file or directory) from server * - * Returns -1 incase of error, 1 if DELE worked, 0 if it failed + * Returns -1 in case of error, 1 if DELE worked, 0 if it failed */ int @@ -1367,7 +1366,7 @@ xmlNanoFTPDele(void *ctx, const char *file) { * Try to open a data connection to the server. Currently only * passive mode is supported. * - * Returns -1 incase of error, 0 otherwise + * Returns -1 in case of error, 0 otherwise */ SOCKET @@ -1540,7 +1539,7 @@ xmlNanoFTPGetConnection(void *ctx) { * * Close the data connection from the server * - * Returns -1 incase of error, 0 otherwise + * Returns -1 in case of error, 0 otherwise */ int @@ -1591,7 +1590,7 @@ xmlNanoFTPCloseConnection(void *ctx) { * * Parse at most one entry from the listing. * - * Returns -1 incase of error, the length of data parsed otherwise + * Returns -1 in case of error, the length of data parsed otherwise */ static int @@ -1719,7 +1718,7 @@ xmlNanoFTPParseList(const char *list, ftpListCallback callback, void *userData) * Do a listing on the server. All files info are passed back * in the callbacks. * - * Returns -1 incase of error, 0 otherwise + * Returns -1 in case of error, 0 otherwise */ int @@ -1894,7 +1893,7 @@ xmlNanoFTPGetSocket(void *ctx, const char *filename) { * Fetch the given file from the server. All data are passed back * in the callbacks. The last callback has a size of 0 block. * - * Returns -1 incase of error, 0 otherwise + * Returns -1 in case of error, 0 otherwise */ int @@ -2024,7 +2023,7 @@ xmlNanoFTPOpen(const char *URL) { * * Close the connection and both control and transport * - * Returns -1 incase of error, 0 otherwise + * Returns -1 in case of error, 0 otherwise */ int |