fix #3284: support lib/MULTIARCH/ paths in installation, use GNUNET_PREFIX=@libdir...
[oweals/gnunet.git] / src / peerinfo / test_peerinfo_api_notify_friend_only.c
index ae2ac5190a83e45b20de805d86657c8eec9d91a1..f371078985554b87d2cae0e92c5d560553faf763 100644 (file)
@@ -227,14 +227,12 @@ add_peer_done (void *cls, const char *emsg)
 static void
 add_peer ()
 {
-  struct GNUNET_CRYPTO_EccPublicKey pkey;
   struct GNUNET_HELLO_Message *h2;
   size_t agc;
 
   agc = 2;
-  memset (&pkey, 32, sizeof (pkey));
-  GNUNET_CRYPTO_hash (&pkey, sizeof (pkey), &pid.hashPubKey);
-  h2 = GNUNET_HELLO_create (&pkey, &address_generator, &agc, GNUNET_YES);
+  memset (&pid, 32, sizeof (pid));
+  h2 = GNUNET_HELLO_create (&pid.public_key, &address_generator, &agc, GNUNET_YES);
   GNUNET_PEERINFO_add_peer (h, h2, &add_peer_done, NULL);
   GNUNET_free (h2);
 
@@ -243,7 +241,7 @@ add_peer ()
 
 
 static void
-run (void *cls, 
+run (void *cls,
      const struct GNUNET_CONFIGURATION_Handle *cfg,
      struct GNUNET_TESTING_Peer *peer)
 {