aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/payloads/transform_attribute.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-29 08:54:48 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-29 08:54:48 +0000
commita0753941e115fa450b3f750427a3755535cfe2fb (patch)
tree1a2da1490e442385d40abcb435cd2fc07e64c3ae /Source/charon/encoding/payloads/transform_attribute.c
parentc6ec246d0dd0028bb206a0261b200c197ab51714 (diff)
downloadstrongswan-a0753941e115fa450b3f750427a3755535cfe2fb.tar.bz2
strongswan-a0753941e115fa450b3f750427a3755535cfe2fb.tar.xz
- changed creation of iterator
- chanded all clone calls
Diffstat (limited to 'Source/charon/encoding/payloads/transform_attribute.c')
-rw-r--r--Source/charon/encoding/payloads/transform_attribute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/charon/encoding/payloads/transform_attribute.c b/Source/charon/encoding/payloads/transform_attribute.c
index 40f06bd8c..c85895fc6 100644
--- a/Source/charon/encoding/payloads/transform_attribute.c
+++ b/Source/charon/encoding/payloads/transform_attribute.c
@@ -255,7 +255,7 @@ static u_int16_t get_attribute_type (private_transform_attribute_t *this)
/**
* Implementation of transform_attribute_t.clone.
*/
-static void clone(private_transform_attribute_t *this,transform_attribute_t **clone)
+static transform_attribute_t * clone(private_transform_attribute_t *this)
{
private_transform_attribute_t *new_clone;
@@ -271,7 +271,7 @@ static void clone(private_transform_attribute_t *this,transform_attribute_t **cl
new_clone->attribute_value.len = this->attribute_value.len;
}
- *clone = (transform_attribute_t *) new_clone;
+ return (transform_attribute_t *) new_clone;
}
/**
@@ -309,7 +309,7 @@ transform_attribute_t *transform_attribute_create()
this->public.get_value = (u_int16_t (*) (transform_attribute_t *)) get_value;
this->public.set_attribute_type = (void (*) (transform_attribute_t *,u_int16_t type)) set_attribute_type;
this->public.get_attribute_type = (u_int16_t (*) (transform_attribute_t *)) get_attribute_type;
- this->public.clone = (void (*) (transform_attribute_t *,transform_attribute_t **)) clone;
+ this->public.clone = (transform_attribute_t * (*) (transform_attribute_t *)) clone;
this->public.destroy = (void (*) (transform_attribute_t *)) destroy;
/* set default values of the fields */