-typos
authorChristian Grothoff <christian@grothoff.org>
Thu, 14 Jun 2012 11:45:00 +0000 (11:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 14 Jun 2012 11:45:00 +0000 (11:45 +0000)
src/peerinfo/peerinfo.h
src/testing/gnunet-testing-run-service.c

index 919645e17d69fa9983db6ee40f942d3f218fb7c4..e618487578677c04b2e37140c4c54a2ada0f1ca3 100644 (file)
@@ -38,7 +38,8 @@ struct ListPeerMessage
 {
 
   /**
-   * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET
+   * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET or
+   * GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL.
    */
   struct GNUNET_MessageHeader header;
 
index fa98e1a6c47b691987cf35773efccb60fb0fc616..38351d75e737f61ac00ff5a1b1bd98c4e15cd782 100644 (file)
@@ -135,7 +135,7 @@ stdin_cb (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
     fprintf (stderr, _("Unknown command, use 'q' to quit or 'r' to restart peer\n"));
     break;
   }
-  tid = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, &fh, &stdin_cb, NULL);    
+  tid = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, fh, &stdin_cb, NULL);    
 }
 
 
@@ -155,7 +155,7 @@ testing_main (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg,
   if (NULL == (tmpfilename = GNUNET_DISK_mktemp ("gnunet-testing")))
   {
     GNUNET_break (0);
-    cleanup ();
+    GNUNET_SCHEDULER_shutdown ();
     return;
   }
   if (GNUNET_SYSERR == 
@@ -166,9 +166,9 @@ testing_main (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg,
   }
   printf("%s\n", tmpfilename);
   fflush(stdout);
-  GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREFER_REL, &cleanup);
+  GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup, NULL);
   fh = GNUNET_DISK_get_handle_from_native (stdin);
-  tid = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, &fh, &stdin_cb, NULL);
+  tid = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, fh, &stdin_cb, NULL);
 }