mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:33:36 +03:00
Reversed the logic for sockaddr_storage and made our own Curl_sockaddr_storage
struct instead to use.
This commit is contained in:
parent
be524fed38
commit
a5da1219bb
3 changed files with 13 additions and 11 deletions
|
|
@ -75,7 +75,7 @@
|
|||
#include "progress.h"
|
||||
#include "connect.h"
|
||||
#include "strerror.h"
|
||||
#include "sockaddr.h" /* required for sockaddr_storage */
|
||||
#include "sockaddr.h" /* required for Curl_sockaddr_storage */
|
||||
|
||||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
|
@ -157,9 +157,9 @@ typedef struct tftp_state_data {
|
|||
time_t start_time;
|
||||
time_t max_time;
|
||||
unsigned short block;
|
||||
struct sockaddr_storage local_addr;
|
||||
struct Curl_sockaddr_storage local_addr;
|
||||
socklen_t local_addrlen;
|
||||
struct sockaddr_storage remote_addr;
|
||||
struct Curl_sockaddr_storage remote_addr;
|
||||
socklen_t remote_addrlen;
|
||||
int rbytes;
|
||||
int sbytes;
|
||||
|
|
@ -598,7 +598,7 @@ CURLcode Curl_tftp(struct connectdata *conn, bool *done)
|
|||
tftp_event_t event;
|
||||
CURLcode code;
|
||||
int rc;
|
||||
struct sockaddr_storage fromaddr;
|
||||
struct Curl_sockaddr_storage fromaddr;
|
||||
socklen_t fromlen;
|
||||
int check_time = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue