mirror of
https://github.com/curl/curl.git
synced 2026-08-01 07:58:10 +03:00
cli_ftp_upload.c portability
```
home/runner/work/curl/curl/tests/libtest/cli_ftp_upload.c:74:28: error: missing braces around initializer [-Werror=missing-braces]
struct timeval timeout = { 1, 0 };
^
```
https://github.com/curl/curl/actions/runs/27428676624/job/81073057087
This commit is contained in:
parent
126eb96c12
commit
8509a66b82
1 changed files with 4 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ static CURLcode test_cli_ftp_upload(const char *URL)
|
|||
CURL *curl_handle;
|
||||
int running_handles = 0;
|
||||
int max_fd = -1;
|
||||
struct timeval timeout = { 1, 0 };
|
||||
struct timeval timeout;
|
||||
fd_set fdread;
|
||||
fd_set fdwrite;
|
||||
fd_set fdexcep;
|
||||
|
|
@ -82,6 +82,9 @@ static CURLcode test_cli_ftp_upload(const char *URL)
|
|||
CURLcode result = CURLE_FAILED_INIT;
|
||||
curl_off_t uploadsize = -1;
|
||||
|
||||
timeout.tv_sec = 1;
|
||||
timeout.tv_usec = 0;
|
||||
|
||||
(void)URL;
|
||||
while((ch = cgetopt(test_argc, test_argv, "r:")) != -1) {
|
||||
switch(ch) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue