diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-15 15:28:41 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-15 15:28:41 +0100 |
commit | 5d6ed5fbda01a324d8d9b800928339d4a90343c3 (patch) | |
tree | b52f65dfc01e42f989df7aa2569ae69695fd9a54 /src/core | |
parent | 294393abdca9f482321696e9aaec64b1a0488607 (diff) | |
download | gnunet-5d6ed5fbda01a324d8d9b800928339d4a90343c3.tar.gz gnunet-5d6ed5fbda01a324d8d9b800928339d4a90343c3.zip |
Still porting to new getopt API.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gnunet-core.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/gnunet-core.c b/src/core/gnunet-core.c index d91dc304d..ed89b1946 100644 --- a/src/core/gnunet-core.c +++ b/src/core/gnunet-core.c | |||
@@ -171,10 +171,11 @@ main (int argc, | |||
171 | char *const *argv) | 171 | char *const *argv) |
172 | { | 172 | { |
173 | int res; | 173 | int res; |
174 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 174 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
175 | {'m', "monitor", NULL, | 175 | GNUNET_GETOPT_OPTION_SET_ONE ('m', |
176 | gettext_noop ("provide information about all current connections (continuously)"), | 176 | "monitor", |
177 | 0, &GNUNET_GETOPT_set_one, &monitor_connections}, | 177 | gettext_noop ("provide information about all current connections (continuously)"), |
178 | &monitor_connections), | ||
178 | GNUNET_GETOPT_OPTION_END | 179 | GNUNET_GETOPT_OPTION_END |
179 | }; | 180 | }; |
180 | 181 | ||