gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r27867 - gnunet/src/peerinfo-tool


From: gnunet
Subject: [GNUnet-SVN] r27867 - gnunet/src/peerinfo-tool
Date: Wed, 10 Jul 2013 12:24:28 +0200

Author: wachs
Date: 2013-07-10 12:24:28 +0200 (Wed, 10 Jul 2013)
New Revision: 27867

Modified:
   gnunet/src/peerinfo-tool/gnunet-peerinfo.c
Log:
add default operation when no argument is given


Modified: gnunet/src/peerinfo-tool/gnunet-peerinfo.c
===================================================================
--- gnunet/src/peerinfo-tool/gnunet-peerinfo.c  2013-07-10 10:19:18 UTC (rev 
27866)
+++ gnunet/src/peerinfo-tool/gnunet-peerinfo.c  2013-07-10 10:24:28 UTC (rev 
27867)
@@ -711,7 +711,7 @@
     put_uri = NULL;
     return;
   }
-  if (GNUNET_YES == get_info)
+  else if (GNUNET_YES == get_info)
   {
     get_info = GNUNET_NO;
     GPI_plugins_load (cfg);
@@ -720,7 +720,7 @@
                                   &print_peer_info, NULL);
     return;
   }
-  if (GNUNET_YES == get_self)
+  else if (GNUNET_YES == get_self)
   {
     struct GNUNET_CRYPTO_HashAsciiEncoded enc;
 
@@ -731,7 +731,7 @@
     else
       printf (_("I am peer `%s'.\n"), (const char *) &enc);
   }
-  if (GNUNET_YES == get_uri)
+  else if (GNUNET_YES == get_uri)
   {
     GPI_plugins_load (cfg);
     pic = GNUNET_PEERINFO_iterate (peerinfo, include_friend_only, 
&my_peer_identity,
@@ -739,12 +739,21 @@
     get_uri = GNUNET_NO;
     return;
   }
-  if (NULL != dump_hello)
+  else if (NULL != dump_hello)
   {
     pic = GNUNET_PEERINFO_iterate (peerinfo, include_friend_only, 
&my_peer_identity,
                                   TIMEOUT, &dump_my_hello, NULL);
     return;
   }
+  else
+  {
+       /* default operation list all */
+       get_info = GNUNET_YES;
+       tt = GNUNET_SCHEDULER_add_now (&state_machine, NULL);
+       return;
+  }
+
+
   GNUNET_SCHEDULER_shutdown ();
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]