diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-25 21:25:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-25 21:25:44 +0100 |
commit | 5a7cef0202631204485cbcb1e36671e4321a936f (patch) | |
tree | ff3d10ac71f9284f18be7c33939f3438071e15c4 /src/dht/gnunet-dht-put.c | |
parent | 2ad934742422ecb63fe3fafdc8c73d067a9e2fb7 (diff) | |
download | gnunet-5a7cef0202631204485cbcb1e36671e4321a936f.tar.gz gnunet-5a7cef0202631204485cbcb1e36671e4321a936f.zip |
rename GNUNET_GETOPT functions to achieve better consistency
Diffstat (limited to 'src/dht/gnunet-dht-put.c')
-rw-r--r-- | src/dht/gnunet-dht-put.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dht/gnunet-dht-put.c b/src/dht/gnunet-dht-put.c index bf88e5ded..f183fe588 100644 --- a/src/dht/gnunet-dht-put.c +++ b/src/dht/gnunet-dht-put.c | |||
@@ -204,47 +204,47 @@ main (int argc, char *const *argv) | |||
204 | 204 | ||
205 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 205 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
206 | 206 | ||
207 | GNUNET_GETOPT_OPTION_STRING ('d', | 207 | GNUNET_GETOPT_option_string ('d', |
208 | "data", | 208 | "data", |
209 | "DATA", | 209 | "DATA", |
210 | gettext_noop ("the data to insert under the key"), | 210 | gettext_noop ("the data to insert under the key"), |
211 | &data), | 211 | &data), |
212 | 212 | ||
213 | GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('e', | 213 | GNUNET_GETOPT_option_relative_time ('e', |
214 | "expiration", | 214 | "expiration", |
215 | "EXPIRATION", | 215 | "EXPIRATION", |
216 | gettext_noop ("how long to store this entry in the dht (in seconds)"), | 216 | gettext_noop ("how long to store this entry in the dht (in seconds)"), |
217 | &expiration), | 217 | &expiration), |
218 | 218 | ||
219 | GNUNET_GETOPT_OPTION_STRING ('k', | 219 | GNUNET_GETOPT_option_string ('k', |
220 | "key", | 220 | "key", |
221 | "KEY", | 221 | "KEY", |
222 | gettext_noop ("the query key"), | 222 | gettext_noop ("the query key"), |
223 | &query_key), | 223 | &query_key), |
224 | 224 | ||
225 | GNUNET_GETOPT_OPTION_SET_ONE ('x', | 225 | GNUNET_GETOPT_option_flag ('x', |
226 | "demultiplex", | 226 | "demultiplex", |
227 | gettext_noop ("use DHT's demultiplex everywhere option"), | 227 | gettext_noop ("use DHT's demultiplex everywhere option"), |
228 | &demultixplex_everywhere), | 228 | &demultixplex_everywhere), |
229 | 229 | ||
230 | GNUNET_GETOPT_OPTION_SET_UINT ('r', | 230 | GNUNET_GETOPT_option_uint ('r', |
231 | "replication", | 231 | "replication", |
232 | "LEVEL", | 232 | "LEVEL", |
233 | gettext_noop ("how many replicas to create"), | 233 | gettext_noop ("how many replicas to create"), |
234 | &replication), | 234 | &replication), |
235 | 235 | ||
236 | GNUNET_GETOPT_OPTION_SET_ONE ('R', | 236 | GNUNET_GETOPT_option_flag ('R', |
237 | "record", | 237 | "record", |
238 | gettext_noop ("use DHT's record route option"), | 238 | gettext_noop ("use DHT's record route option"), |
239 | &record_route), | 239 | &record_route), |
240 | 240 | ||
241 | GNUNET_GETOPT_OPTION_SET_UINT ('t', | 241 | GNUNET_GETOPT_option_uint ('t', |
242 | "type", | 242 | "type", |
243 | "TYPE", | 243 | "TYPE", |
244 | gettext_noop ("the type to insert data as"), | 244 | gettext_noop ("the type to insert data as"), |
245 | &query_type), | 245 | &query_type), |
246 | 246 | ||
247 | GNUNET_GETOPT_OPTION_VERBOSE (&verbose), | 247 | GNUNET_GETOPT_option_verbose (&verbose), |
248 | 248 | ||
249 | GNUNET_GETOPT_OPTION_END | 249 | GNUNET_GETOPT_OPTION_END |
250 | }; | 250 | }; |