From: Christian Grothoff Date: Sun, 21 Jan 2018 14:23:40 +0000 (+0100) Subject: indentation fixes X-Git-Tag: v0.11.0pre66~245^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=64ccb23dba77c969ef70f3e27272684f6864ac0f;p=oweals%2Fgnunet.git indentation fixes --- diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c index 395aad7db..c75469a24 100644 --- a/src/fs/gnunet-publish.c +++ b/src/fs/gnunet-publish.c @@ -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), diff --git a/src/util/scheduler.c b/src/util/scheduler.c index d0e8f7bc6..6cf5e1168 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c @@ -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); }