aboutsummaryrefslogtreecommitdiff
path: root/src/auction/gnunet-auction-create.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auction/gnunet-auction-create.c')
-rw-r--r--src/auction/gnunet-auction-create.c30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/auction/gnunet-auction-create.c b/src/auction/gnunet-auction-create.c
index 13c84f49a..fae9c13ae 100644
--- a/src/auction/gnunet-auction-create.c
+++ b/src/auction/gnunet-auction-create.c
@@ -55,7 +55,35 @@ run (void *cls,
55 const char *cfgfile, 55 const char *cfgfile,
56 const struct GNUNET_CONFIGURATION_Handle *cfg) 56 const struct GNUNET_CONFIGURATION_Handle *cfg)
57{ 57{
58 /* main code here */ 58 /* cmdline parsing */
59 if (GNUNET_TIME_UNIT_ZERO.rel_value_us == dstart.rel_value_us)
60 {
61 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
62 "required argument --regtime missing or invalid (zero)\n");
63 goto fail;
64 }
65 if (GNUNET_TIME_UNIT_ZERO.rel_value_us == dround.rel_value_us)
66 {
67 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
68 "required argument --roundtime missing or invalid (zero)\n");
69 goto fail;
70 }
71 if (!fndesc)
72 {
73 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
74 "required argument --description missing\n");
75 goto fail;
76 }
77 if (!fnprices)
78 {
79 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
80 "required argument --pricemap missing\n");
81 goto fail;
82 }
83
84fail:
85 ret = 1;
86 return;
59} 87}
60 88
61 89