gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r21645 - gnunet/src/testing


From: gnunet
Subject: [GNUnet-SVN] r21645 - gnunet/src/testing
Date: Wed, 30 May 2012 16:34:51 +0200

Author: harsha
Date: 2012-05-30 16:34:51 +0200 (Wed, 30 May 2012)
New Revision: 21645

Modified:
   gnunet/src/testing/testing_new.c
Log:
comments and fixed NULL check for tm

Modified: gnunet/src/testing/testing_new.c
===================================================================
--- gnunet/src/testing/testing_new.c    2012-05-30 14:26:40 UTC (rev 21644)
+++ gnunet/src/testing/testing_new.c    2012-05-30 14:34:51 UTC (rev 21645)
@@ -354,7 +354,7 @@
  if (GNUNET_YES != GNUNET_DISK_file_test (filename))
   {
     LOG (GNUNET_ERROR_TYPE_ERROR,
-         "Hostkeys file not found: %s\n", filename);
+         _("Hostkeys file not found: %s\n"), filename);
     return GNUNET_SYSERR;
   }
   /* Check hostkey file size, read entire thing into memory */
@@ -363,7 +363,7 @@
   if (NULL == fd)
   {
     LOG (GNUNET_ERROR_TYPE_ERROR,
-         "Could not open hostkeys file: %s\n", filename);
+         _("Could not open hostkeys file: %s\n"), filename);
     return GNUNET_SYSERR;
   }
   if (GNUNET_OK != 
@@ -378,7 +378,7 @@
   {
     GNUNET_DISK_file_close (fd);
     LOG (GNUNET_ERROR_TYPE_ERROR,
-         "Incorrect hostkey file format: %s\n", filename);
+         _("Incorrect hostkey file format: %s\n"), filename);
     return GNUNET_SYSERR;
   }
   GNUNET_break (NULL == system->hostkeys_data);
@@ -883,14 +883,18 @@
 };
 
 
+/**
+ * Callback to be called when SCHEDULER has been started
+ *
+ * @param cls the ServiceContext
+ * @param tc the TaskContext
+ */
 static void
 service_run_main (void *cls,
                  const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   struct ServiceContext *sc = cls;
 
-  if (NULL == sc->tm)
-    return;
   sc->tm (sc->tm_cls, sc->cfg);
 }
 




reply via email to

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