Fix getsockname argument type
Improve "universal" alignment type in struct memdebug
This commit is contained in:
parent
c1b9356081
commit
259f27b09f
@ -155,7 +155,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
|
||||
char *p;
|
||||
const char *host = conn->dns_entry->addr->ai_canonname;
|
||||
ssize_t nread;
|
||||
unsigned int l = sizeof(conn->local_addr);
|
||||
socklen_t l = sizeof(conn->local_addr);
|
||||
struct SessionHandle *data = conn->data;
|
||||
CURLcode result;
|
||||
const char *service = "ftp", *srv_host = "host";
|
||||
|
@ -47,7 +47,10 @@
|
||||
|
||||
struct memdebug {
|
||||
size_t size;
|
||||
double mem[1];
|
||||
union {
|
||||
double d;
|
||||
void * p;
|
||||
} mem[1];
|
||||
/* I'm hoping this is the thing with the strictest alignment
|
||||
* requirements. That also means we waste some space :-( */
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user