aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon')
-rw-r--r--Source/charon/network/socket.c2
-rwxr-xr-xSource/charon/threads/stroke_interface.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/Source/charon/network/socket.c b/Source/charon/network/socket.c
index 79c7c421d..32ff84538 100644
--- a/Source/charon/network/socket.c
+++ b/Source/charon/network/socket.c
@@ -133,7 +133,7 @@ struct private_socket_t{
/**
* implementation of socket_t.receive
*/
-status_t receiver(private_socket_t *this, packet_t **packet)
+static status_t receiver(private_socket_t *this, packet_t **packet)
{
char buffer[MAX_PACKET];
chunk_t data;
diff --git a/Source/charon/threads/stroke_interface.c b/Source/charon/threads/stroke_interface.c
index 274791bcf..2881cb26a 100755
--- a/Source/charon/threads/stroke_interface.c
+++ b/Source/charon/threads/stroke_interface.c
@@ -309,8 +309,8 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg)
my_host->destroy(my_host);
return;
}
- my_id = identification_create_from_string(ID_IPV4_ADDR,
- *msg->add_conn.me.id ? msg->add_conn.me.id : msg->add_conn.me.address);
+ my_id = identification_create_from_string(*msg->add_conn.me.id ?
+ msg->add_conn.me.id : msg->add_conn.me.address);
if (my_id == NULL)
{
this->stroke_logger->log(this->stroke_logger, ERROR, "invalid id: %s", msg->add_conn.me.id);
@@ -318,8 +318,8 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg)
other_host->destroy(other_host);
return;
}
- other_id = identification_create_from_string(ID_IPV4_ADDR,
- *msg->add_conn.other.id ? msg->add_conn.other.id : msg->add_conn.other.address);
+ other_id = identification_create_from_string(*msg->add_conn.other.id ?
+ msg->add_conn.other.id : msg->add_conn.other.address);
if (other_id == NULL)
{
my_host->destroy(my_host);
@@ -328,7 +328,7 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg)
this->stroke_logger->log(this->stroke_logger, ERROR, "invalid id: %s", msg->add_conn.other.id);
return;
}
-
+
my_subnet = host_create(AF_INET, *msg->add_conn.me.subnet ? msg->add_conn.me.subnet : msg->add_conn.me.address, 500);
if (my_subnet == NULL)
{
@@ -339,7 +339,7 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg)
this->stroke_logger->log(this->stroke_logger, ERROR, "invalid subnet: %s", msg->add_conn.me.subnet);
return;
}
-
+
other_subnet = host_create(AF_INET, *msg->add_conn.other.subnet ? msg->add_conn.other.subnet : msg->add_conn.other.address, 500);
if (other_subnet == NULL)
{