aboutsummaryrefslogtreecommitdiff
path: root/src/template/gnunet-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/template/gnunet-template.c')
-rw-r--r--src/template/gnunet-template.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/template/gnunet-template.c b/src/template/gnunet-template.c
index 1ebb1b512..20d286d3c 100644
--- a/src/template/gnunet-template.c
+++ b/src/template/gnunet-template.c
@@ -42,10 +42,10 @@ static int ret;
42 * @param cfg configuration 42 * @param cfg configuration
43 */ 43 */
44static void 44static void
45run(void *cls, 45run (void *cls,
46 char *const *args, 46 char *const *args,
47 const char *cfgfile, 47 const char *cfgfile,
48 const struct GNUNET_CONFIGURATION_Handle *cfg) 48 const struct GNUNET_CONFIGURATION_Handle *cfg)
49{ 49{
50 /* main code here */ 50 /* main code here */
51} 51}
@@ -59,26 +59,26 @@ run(void *cls,
59 * @return 0 ok, 1 on error 59 * @return 0 ok, 1 on error
60 */ 60 */
61int 61int
62main(int argc, char *const *argv) 62main (int argc, char *const *argv)
63{ 63{
64 static const struct GNUNET_GETOPT_CommandLineOption options[] = { 64 static const struct GNUNET_GETOPT_CommandLineOption options[] = {
65 /* FIMXE: add options here */ 65 /* FIMXE: add options here */
66 GNUNET_GETOPT_OPTION_END 66 GNUNET_GETOPT_OPTION_END
67 }; 67 };
68 68
69 if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args(argc, argv, &argc, &argv)) 69 if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
70 return 2; 70 return 2;
71 71
72 ret = (GNUNET_OK == GNUNET_PROGRAM_run(argc, 72 ret = (GNUNET_OK == GNUNET_PROGRAM_run (argc,
73 argv, 73 argv,
74 "gnunet-template", 74 "gnunet-template",
75 gettext_noop("help text"), 75 gettext_noop ("help text"),
76 options, 76 options,
77 &run, 77 &run,
78 NULL)) 78 NULL))
79 ? ret 79 ? ret
80 : 1; 80 : 1;
81 GNUNET_free((void *)argv); 81 GNUNET_free ((void *) argv);
82 return ret; 82 return ret;
83} 83}
84 84