/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
xbt_peer_t xbt_peer_copy(xbt_peer_t h)
{
return xbt_peer_new(h->name, h->port);
xbt_peer_t xbt_peer_copy(xbt_peer_t h)
{
return xbt_peer_new(h->name, h->port);
xbt_peer_t res = xbt_new(s_xbt_peer_t, 1);
char *name = xbt_strdup(peerport);
char *port_str = strchr(name, ':');
xbt_peer_t res = xbt_new(s_xbt_peer_t, 1);
char *name = xbt_strdup(peerport);
char *port_str = strchr(name, ':');