aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-publish.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-06 14:28:29 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-06 14:28:29 +0100
commitb0f1f0f3fac0120b116132dfd90742b0115b152f (patch)
treea4702cf93a42274635da22c171a0a0a0f6d58325 /src/fs/gnunet-publish.c
parentc9e6bedfb094fe75dda634938206fc408520717c (diff)
downloadgnunet-b0f1f0f3fac0120b116132dfd90742b0115b152f.tar.gz
gnunet-b0f1f0f3fac0120b116132dfd90742b0115b152f.zip
indentation fixes
Diffstat (limited to 'src/fs/gnunet-publish.c')
-rw-r--r--src/fs/gnunet-publish.c35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c
index 999301c2f..8501141ce 100644
--- a/src/fs/gnunet-publish.c
+++ b/src/fs/gnunet-publish.c
@@ -728,7 +728,8 @@ identity_continuation (const char *args0)
728 GNUNET_SCHEDULER_shutdown (); 728 GNUNET_SCHEDULER_shutdown ();
729 return; 729 return;
730 } 730 }
731 GNUNET_FS_publish_ksk (ctx, topKeywords, 731 GNUNET_FS_publish_ksk (ctx,
732 topKeywords,
732 meta, uri, 733 meta, uri,
733 &bo, 734 &bo,
734 GNUNET_FS_PUBLISH_OPTION_NONE, 735 GNUNET_FS_PUBLISH_OPTION_NONE,
@@ -889,7 +890,8 @@ run (void *cls,
889 * @return 0 ok, 1 on error 890 * @return 0 ok, 1 on error
890 */ 891 */
891int 892int
892main (int argc, char *const *argv) 893main (int argc,
894 char *const *argv)
893{ 895{
894 struct GNUNET_GETOPT_CommandLineOption options[] = { 896 struct GNUNET_GETOPT_CommandLineOption options[] = {
895 GNUNET_GETOPT_option_uint ('a', 897 GNUNET_GETOPT_option_uint ('a',
@@ -922,26 +924,22 @@ main (int argc, char *const *argv)
922 "TYPE:VALUE", 924 "TYPE:VALUE",
923 gettext_noop ("set the meta-data for the given TYPE to the given VALUE"), 925 gettext_noop ("set the meta-data for the given TYPE to the given VALUE"),
924 &meta), 926 &meta),
925
926 GNUNET_GETOPT_option_flag ('n', 927 GNUNET_GETOPT_option_flag ('n',
927 "noindex", 928 "noindex",
928 gettext_noop ("do not index, perform full insertion (stores " 929 gettext_noop ("do not index, perform full insertion (stores "
929 "entire file in encrypted form in GNUnet database)"), 930 "entire file in encrypted form in GNUnet database)"),
930 &do_insert), 931 &do_insert),
931
932 GNUNET_GETOPT_option_string ('N', 932 GNUNET_GETOPT_option_string ('N',
933 "next", 933 "next",
934 "ID", 934 "ID",
935 gettext_noop ("specify ID of an updated version to be " 935 gettext_noop ("specify ID of an updated version to be "
936 "published in the future (for namespace insertions only)"), 936 "published in the future (for namespace insertions only)"),
937 &next_id), 937 &next_id),
938
939 GNUNET_GETOPT_option_uint ('p', 938 GNUNET_GETOPT_option_uint ('p',
940 "priority", 939 "priority",
941 "PRIORITY", 940 "PRIORITY",
942 gettext_noop ("specify the priority of the content"), 941 gettext_noop ("specify the priority of the content"),
943 &bo.content_priority), 942 &bo.content_priority),
944
945 GNUNET_GETOPT_option_string ('P', 943 GNUNET_GETOPT_option_string ('P',
946 "pseudonym", 944 "pseudonym",
947 "NAME", 945 "NAME",
@@ -964,7 +962,6 @@ main (int argc, char *const *argv)
964 gettext_noop ("set the ID of this version of the publication " 962 gettext_noop ("set the ID of this version of the publication "
965 "(for namespace insertions only)"), 963 "(for namespace insertions only)"),
966 &this_id), 964 &this_id),
967
968 GNUNET_GETOPT_option_string ('u', 965 GNUNET_GETOPT_option_string ('u',
969 "uri", 966 "uri",
970 "URI", 967 "URI",
@@ -982,10 +979,14 @@ main (int argc, char *const *argv)
982 if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) 979 if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
983 return 2; 980 return 2;
984 ret = (GNUNET_OK == 981 ret = (GNUNET_OK ==
985 GNUNET_PROGRAM_run (argc, argv, "gnunet-publish [OPTIONS] FILENAME", 982 GNUNET_PROGRAM_run (argc,
983 argv,
984 "gnunet-publish [OPTIONS] FILENAME",
986 gettext_noop 985 gettext_noop
987 ("Publish a file or directory on GNUnet"), 986 ("Publish a file or directory on GNUnet"),
988 options, &run, NULL)) ? ret : 1; 987 options,
988 &run,
989 NULL)) ? ret : 1;
989 GNUNET_free ((void*) argv); 990 GNUNET_free ((void*) argv);
990 return ret; 991 return ret;
991} 992}