indentation fixes
authorChristian Grothoff <christian@grothoff.org>
Sun, 21 Jan 2018 14:23:40 +0000 (15:23 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 21 Jan 2018 14:23:49 +0000 (15:23 +0100)
src/fs/gnunet-publish.c
src/util/scheduler.c

index 395aad7dbf2485159ce972904b961b54b121e1a0..c75469a243ff0e3b82cf9208266f50a650c5d8db 100644 (file)
@@ -895,35 +895,30 @@ main (int argc, char *const *argv)
 {
   struct GNUNET_GETOPT_CommandLineOption options[] = {
     GNUNET_GETOPT_option_uint ('a',
-                                   "anonymity",
-                                   "LEVEL",
-                                   gettext_noop ("set the desired LEVEL of sender-anonymity"),
-                                   &bo.anonymity_level),
-
+                               "anonymity",
+                               "LEVEL",
+                               gettext_noop ("set the desired LEVEL of sender-anonymity"),
+                               &bo.anonymity_level),
     GNUNET_GETOPT_option_flag ('d',
-                                  "disable-creation-time",
-                                  gettext_noop ("disable adding the creation time to the "
-                                                "metadata of the uploaded file"),
-                                  &do_disable_creation_time),
-
+                               "disable-creation-time",
+                               gettext_noop ("disable adding the creation time to the "
+                                             "metadata of the uploaded file"),
+                               &do_disable_creation_time),
     GNUNET_GETOPT_option_flag ('D',
-                                  "disable-extractor",
-                                  gettext_noop ("do not use libextractor to add keywords or metadata"),
-                                  &disable_extractor),
-
+                               "disable-extractor",
+                               gettext_noop ("do not use libextractor to add keywords or metadata"),
+                               &disable_extractor),
     GNUNET_GETOPT_option_flag ('e',
-                                  "extract",
-                                  gettext_noop ("print list of extracted keywords that would "
-                                                "be used, but do not perform upload"),
-                                  &extract_only),
-
+                               "extract",
+                               gettext_noop ("print list of extracted keywords that would "
+                                             "be used, but do not perform upload"),
+                               &extract_only),
     GNUNET_FS_GETOPT_KEYWORDS ('k',
                                "key",
                                "KEYWORD",
                                gettext_noop ("add an additional keyword for the top-level "
                                              "file or directory (this option can be specified multiple times)"),
                                &topKeywords),
-
     GNUNET_FS_GETOPT_METADATA ('m',
                                "meta",
                                "TYPE:VALUE",
@@ -955,20 +950,16 @@ main (int argc, char *const *argv)
                                  gettext_noop ("publish the files under the pseudonym "
                                                "NAME (place file into namespace)"),
                                  &pseudonym),
-
     GNUNET_GETOPT_option_uint ('r',
-                                   "replication",
-                                   "LEVEL",
-                                   gettext_noop ("set the desired replication LEVEL"),
-                                   &bo.replication_level),
-
-
+                               "replication",
+                               "LEVEL",
+                               gettext_noop ("set the desired replication LEVEL"),
+                               &bo.replication_level),
     GNUNET_GETOPT_option_flag ('s',
-                                  "simulate-only",
-                                  gettext_noop ("only simulate the process but do not do "
-                                                "any actual publishing (useful to compute URIs)"),
-                                  &do_simulate),
-
+                               "simulate-only",
+                               gettext_noop ("only simulate the process but do not do "
+                                             "any actual publishing (useful to compute URIs)"),
+                               &do_simulate),
     GNUNET_GETOPT_option_string ('t',
                                  "this",
                                  "ID",
@@ -981,7 +972,7 @@ main (int argc, char *const *argv)
                                  "URI",
                                  gettext_noop ("URI to be published (can be used instead of passing a "
                                                "file to add keywords to the file with the respective URI)"),
-                                 &uri_string), 
+                                 &uri_string),
 
     GNUNET_GETOPT_option_verbose (&verbose),
 
index d0e8f7bc65493a19d26205c62286c9e4c93a447f..6cf5e1168f7b3cb41e0e3f4d8aa74587e6cfd16d 100644 (file)
@@ -679,12 +679,12 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_TaskCallback task,
   struct DriverContext context = {.scheduled_head = NULL,
                                   .scheduled_tail = NULL,
                                   .timeout = GNUNET_TIME_UNIT_FOREVER_REL};
-  
+
   driver = GNUNET_SCHEDULER_driver_select ();
   driver->cls = &context;
 
   GNUNET_SCHEDULER_run_with_driver (driver, task, task_cls);
-  
+
   GNUNET_free (driver);
 }
 
@@ -860,7 +860,7 @@ driver_add_multiple (struct GNUNET_SCHEDULER_Task *t)
     success = scheduler_driver->add (scheduler_driver->cls,
                                     t,
                                     fdi) && success;
-    fdi->et = GNUNET_SCHEDULER_ET_NONE; 
+    fdi->et = GNUNET_SCHEDULER_ET_NONE;
   }
   if (GNUNET_YES != success)
   {
@@ -2232,7 +2232,7 @@ select_loop (void *cls,
   struct DriverContext *context;
   int select_result;
   int tasks_ready;
+
   context = cls;
   GNUNET_assert (NULL != context);
   rs = GNUNET_NETWORK_fdset_create ();
@@ -2338,7 +2338,7 @@ select_loop (void *cls,
   }
   GNUNET_NETWORK_fdset_destroy (rs);
   GNUNET_NETWORK_fdset_destroy (ws);
-  return GNUNET_OK; 
+  return GNUNET_OK;
 }
 
 
@@ -2348,7 +2348,7 @@ select_set_wakeup (void *cls,
 {
   struct DriverContext *context = cls;
   GNUNET_assert (NULL != context);
+
   context->timeout = GNUNET_TIME_absolute_get_remaining (dt);
 }