Commit afa30e51 authored by Lukasz Marek's avatar Lukasz Marek

ftp: formatting and typos fixes

parent f77467a1
...@@ -45,7 +45,8 @@ typedef struct { ...@@ -45,7 +45,8 @@ typedef struct {
int conn_control_block_flag; /**< Controls block/unblock mode of data connection */ int conn_control_block_flag; /**< Controls block/unblock mode of data connection */
AVIOInterruptCB conn_control_interrupt_cb; /**< Controls block/unblock mode of data connection */ AVIOInterruptCB conn_control_interrupt_cb; /**< Controls block/unblock mode of data connection */
URLContext *conn_data; /**< Data connection, NULL when not connected */ URLContext *conn_data; /**< Data connection, NULL when not connected */
uint8_t control_buffer[CONTROL_BUFFER_SIZE], *control_buf_ptr, *control_buf_end; /**< Control connection buffer */ uint8_t control_buffer[CONTROL_BUFFER_SIZE]; /**< Control connection buffer */
uint8_t *control_buf_ptr, *control_buf_end;
int server_data_port; /**< Data connection port opened by server, -1 on error. */ int server_data_port; /**< Data connection port opened by server, -1 on error. */
char hostname[512]; /**< Server address. */ char hostname[512]; /**< Server address. */
char path[MAX_URL_SIZE]; /**< Path to resource on server. */ char path[MAX_URL_SIZE]; /**< Path to resource on server. */
...@@ -63,7 +64,7 @@ typedef struct { ...@@ -63,7 +64,7 @@ typedef struct {
static const AVOption options[] = { static const AVOption options[] = {
{"timeout", "set timeout of socket I/O operations", OFFSET(rw_timeout), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, D|E }, {"timeout", "set timeout of socket I/O operations", OFFSET(rw_timeout), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, D|E },
{"ftp-write-seekable", "control seekability of connection during encoding", OFFSET(write_seekable), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, E }, {"ftp-write-seekable", "control seekability of connection during encoding", OFFSET(write_seekable), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, E },
{"ftp-anonymous-password", "password for anonynous login. E-mail address should be used.", OFFSET(anonymous_password), AV_OPT_TYPE_STRING, { 0 }, 0, 0, D|E }, {"ftp-anonymous-password", "password for anonymous login. E-mail address should be used.", OFFSET(anonymous_password), AV_OPT_TYPE_STRING, { 0 }, 0, 0, D|E },
{NULL} {NULL}
}; };
...@@ -129,7 +130,7 @@ static int ftp_get_line(FTPContext *s, char *line, int line_size) ...@@ -129,7 +130,7 @@ static int ftp_get_line(FTPContext *s, char *line, int line_size)
/* /*
* This routine returns ftp server response code. * This routine returns ftp server response code.
* Server may send more than one response for a certain command, following priorites are used: * Server may send more than one response for a certain command, following priorities are used:
* - 5xx code is returned if occurred. (means error) * - 5xx code is returned if occurred. (means error)
* - When pref_code is set then pref_code is return if occurred. (expected result) * - When pref_code is set then pref_code is return if occurred. (expected result)
* - The lowest code is returned. (means success) * - The lowest code is returned. (means success)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment