[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18756 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18756 - gnunet/src/transport |
Date: |
Thu, 22 Dec 2011 15:15:31 +0100 |
Author: wachs
Date: 2011-12-22 15:15:31 +0100 (Thu, 22 Dec 2011)
New Revision: 18756
Modified:
gnunet/src/transport/gnunet-transport.c
Log:
include plugin in gnunet-transport output
Modified: gnunet/src/transport/gnunet-transport.c
===================================================================
--- gnunet/src/transport/gnunet-transport.c 2011-12-21 20:26:59 UTC (rev
18755)
+++ gnunet/src/transport/gnunet-transport.c 2011-12-22 14:15:31 UTC (rev
18756)
@@ -440,16 +440,16 @@
void
process_string (void *cls, const char *address)
{
- struct GNUNET_PeerIdentity *peer = cls;
+ struct GNUNET_HELLO_Address *addrcp = cls;
if ((address != NULL))
{
- fprintf (stdout, _("Peer `%s': %s\n"), GNUNET_i2s (peer), address);
+ fprintf (stdout, _("Peer `%s': %s %s\n"), GNUNET_i2s (&addrcp->peer),
addrcp->transport_name, address);
}
else
{
/* done */
- GNUNET_free (peer);
+ GNUNET_free (addrcp);
}
}
@@ -467,7 +467,6 @@
const struct GNUNET_HELLO_Address *address)
{
const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
- struct GNUNET_PeerIdentity *peercp;
if ((address == NULL) || (peer == NULL))
{
@@ -475,13 +474,10 @@
return;
}
- peercp = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity));
- *peercp = *peer;
-
/* Resolve address to string */
GNUNET_TRANSPORT_address_to_string (cfg, address, numeric,
GNUNET_TIME_UNIT_MINUTES,
&process_string,
- peercp);
+ GNUNET_HELLO_address_copy(address));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18756 - gnunet/src/transport,
gnunet <=