renamed all static clone() functions to avoid naming conflicts with uclibc

This commit is contained in:
Martin Willi
2007-02-01 15:24:10 +00:00
parent 42dcd01ffe
commit d3032a9a82
5 changed files with 17 additions and 11 deletions
+9 -3
View File
@@ -1,6 +1,12 @@
#!/bin/bash
make install || exit
ipsec start --nofork &
CMD=`tempfile`
LOG="debug.log"
ipsec start --nofork 2>&1 > $LOG &
sleep 1
gdb /usr/local/libexec/ipsec/charon `cat /var/run/charon.pid`
echo >> $LOG
echo >> $LOG
echo >> $LOG
echo "c" > $CMD
gdb -batch /usr/local/libexec/ipsec/charon `cat /var/run/charon.pid ` -x $CMD 2>&1 >> $LOG
ipsec stop
rm $CMD
+2 -2
View File
@@ -130,7 +130,7 @@ static void destroy(private_packet_t *this)
/**
* Implements packet_t.clone.
*/
static packet_t *clone(private_packet_t *this)
static packet_t *clone_(private_packet_t *this)
{
private_packet_t *other = (private_packet_t*)packet_create();
@@ -163,7 +163,7 @@ packet_t *packet_create(void)
this->public.get_source = (host_t*(*) (packet_t *)) get_source;
this->public.set_destination = (void(*) (packet_t *,host_t*)) set_destination;
this->public.get_destination = (host_t*(*) (packet_t *)) get_destination;
this->public.clone = (packet_t*(*) (packet_t *))clone;
this->public.clone = (packet_t*(*) (packet_t *))clone_;
this->public.destroy = (void(*) (packet_t *)) destroy;
this->destination = NULL;
+2 -2
View File
@@ -147,7 +147,7 @@ static bool switch_initiator(private_ike_sa_id_t *this)
/**
* Implementation of ike_sa_id_t.clone.
*/
static ike_sa_id_t* clone(private_ike_sa_id_t *this)
static ike_sa_id_t* clone_(private_ike_sa_id_t *this)
{
return ike_sa_id_create(this->initiator_spi, this->responder_spi, this->is_initiator_flag);
}
@@ -203,7 +203,7 @@ ike_sa_id_t * ike_sa_id_create(u_int64_t initiator_spi, u_int64_t responder_spi,
this->public.replace_values = (void(*)(ike_sa_id_t*,ike_sa_id_t*)) replace_values;
this->public.is_initiator = (bool(*)(ike_sa_id_t*)) is_initiator;
this->public.switch_initiator = (bool(*)(ike_sa_id_t*)) switch_initiator;
this->public.clone = (ike_sa_id_t*(*)(ike_sa_id_t*)) clone;
this->public.clone = (ike_sa_id_t*(*)(ike_sa_id_t*)) clone_;
this->public.destroy = (void(*)(ike_sa_id_t*))destroy;
/* private data */