You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ SPDX-License-Identifier: AGPL3.0-or-later
*/
/**
static char buf[5];
char *ret;
- if (NULL == cp ||
- NULL == &cp->pid.public_key){
+ if ((NULL == cp) ||
+ (NULL == &cp->pid.public_key))
return "NULL";
- }
+
ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&cp->pid.public_key);
- if (NULL == ret){
+ if (NULL == ret)
return "NULL";
- }
+
strncpy (buf,
ret,
(NULL == cp->core_mq) ? "" : " including direct link");
if (NULL != cp->core_mq)
{
+ /* FIXME: this branch seems to duplicate the
+ i=0 case below (direct link). Leave out!??? -CG */
struct CadetPeerPath *path;
path = GCPP_get_path_from_route (1,