Commit 9f17d057 authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed compiler warnings in su, nua, resolv and iptsec modules. Patch by Rmi Denis-Courmont.

darcs-hash:20060607111724-7659e-517bf5e0e7ed601d9791bfd853a66a94af6a307f.gz
parent ec91fc97
......@@ -38,6 +38,7 @@
#include <assert.h>
#include <sofia-sip/su_md5.h>
#include "sofia-sip/auth_common.h"
#include "sofia-sip/auth_digest.h"
#include "sofia-sip/msg_header.h"
......
......@@ -357,7 +357,7 @@ void test_nat_destroy(struct nat *nat)
}
/** Get "private" address. */
int test_nat_private(struct nat *nat, void *address, int *return_addrlen)
int test_nat_private(struct nat *nat, void *address, socklen_t *return_addrlen)
{
if (nat == NULL || address == NULL || return_addrlen == NULL)
return su_seterrno(EFAULT);
......
......@@ -37,7 +37,7 @@ struct nat *test_nat_create(su_root_t *, int family,
void test_nat_destroy(struct nat *);
int test_nat_private(struct nat *nat, void *address, int *return_addrlen);
int test_nat_private(struct nat *nat, void *address, socklen_t *return_addrlen);
int test_nat_public(struct nat *nat, void const *address, int addrlen);
int test_nat_flush(struct nat *nat);
......
......@@ -64,6 +64,7 @@ typedef unsigned _int32 uint32_t;
#include <sofia-resolv/sres_async.h>
#include <sofia-resolv/sres_record.h>
#include <sofia-sip/su.h>
#include <sofia-sip/su_alloc.h>
#include <assert.h>
......@@ -155,7 +156,7 @@ int test_socket(sres_context_t *ctx)
struct sockaddr *sa = (void *)a;
struct sockaddr *sa1 = (void *)a1, *sa2 = (void *)a2;
struct sockaddr *sa3 = (void *)a3, *sa4 = (void *)a4;
int alen, a1len, a2len, a3len, a4len;
socklen_t alen, a1len, a2len, a3len, a4len;
char buf[16];
BEGIN();
......
......@@ -75,7 +75,7 @@ int su_close(su_socket_t s)
int su_setblocking(int s, int blocking)
{
unsigned mode = fcntl(s, F_GETFL, 0);
int mode = fcntl(s, F_GETFL, 0);
if (mode < 0)
return -1;
......
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