summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2007-08-08 10:37:07 +0000
committerPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2007-08-08 10:37:07 +0000
commit259f27b09fcbe1440a00f3024ecdf4c43e218642 (patch)
tree2cd4a3fc48d8c21130b2f52be4503c0771da75b1
parentc1b9356081d75c00f5907605a32e0fc3f5b8f46b (diff)
downloadgnurl-259f27b09fcbe1440a00f3024ecdf4c43e218642.tar.gz
gnurl-259f27b09fcbe1440a00f3024ecdf4c43e218642.tar.bz2
gnurl-259f27b09fcbe1440a00f3024ecdf4c43e218642.zip
Fix getsockname argument type
Improve "universal" alignment type in struct memdebug
-rw-r--r--lib/krb5.c2
-rw-r--r--lib/memdebug.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/krb5.c b/lib/krb5.c
index 989bc4959..b2c04a9cb 100644
--- a/lib/krb5.c
+++ b/lib/krb5.c
@@ -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";
diff --git a/lib/memdebug.c b/lib/memdebug.c
index 2eb4c5afb..9d3ef3d5e 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -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 :-( */
};