aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-10-04 10:17:36 +0200
committerTobias Brunner <tobias@strongswan.org>2011-10-04 10:17:36 +0200
commit4459ae8cf58e63d5f3af305031f743d35f7b76e2 (patch)
tree24ff7af5ccc7e8eb52578ff1a9ed034db1a4a61d /src
parent4fb6b7a12cd9c8d1ea4ba4e72e3577eca7553c9f (diff)
downloadstrongswan-4459ae8cf58e63d5f3af305031f743d35f7b76e2.tar.bz2
strongswan-4459ae8cf58e63d5f3af305031f743d35f7b76e2.tar.xz
Fixed compiler warnings for endpoint_notify_t.
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/encoding/payloads/endpoint_notify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcharon/encoding/payloads/endpoint_notify.c b/src/libcharon/encoding/payloads/endpoint_notify.c
index 37164780b..69bf43a7b 100644
--- a/src/libcharon/encoding/payloads/endpoint_notify.c
+++ b/src/libcharon/encoding/payloads/endpoint_notify.c
@@ -273,7 +273,7 @@ METHOD(endpoint_notify_t, clone_, endpoint_notify_t*,
{
private_endpoint_notify_t *clone;
- clone = endpoint_notify_create();
+ clone = (private_endpoint_notify_t*)endpoint_notify_create();
clone->priority = this->priority;
clone->type = this->type;
clone->family = this->family;
@@ -322,7 +322,7 @@ endpoint_notify_t *endpoint_notify_create()
.type = NO_TYPE,
);
- return this;
+ return &this->public;
}
/**
@@ -332,7 +332,7 @@ endpoint_notify_t *endpoint_notify_create_from_host(me_endpoint_type_t type, hos
{
private_endpoint_notify_t *this;
- this = endpoint_notify_create();
+ this = (private_endpoint_notify_t*)endpoint_notify_create();
this->type = type;
switch(type)
@@ -397,7 +397,7 @@ endpoint_notify_t *endpoint_notify_create_from_payload(notify_payload_t *notify)
return NULL;
}
- this = endpoint_notify_create();
+ this = (private_endpoint_notify_t*)endpoint_notify_create();
data = notify->get_notification_data(notify);
if (parse_notification_data(this, data) != SUCCESS)