diff options
author | ng0 <ng0@n0.is> | 2019-04-25 22:29:55 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-04-25 22:29:55 +0000 |
commit | d039e80999f8df49d7b683e60af4145aacd18f83 (patch) | |
tree | e7f8accac09e8715c5df7004951daa7d01f449ae /src/template/gnunet-template.c | |
parent | 87ec5f76b97d15794a1c17706305080c089d5afd (diff) | |
download | gnunet-d039e80999f8df49d7b683e60af4145aacd18f83.tar.gz gnunet-d039e80999f8df49d7b683e60af4145aacd18f83.zip |
src/template: format
Diffstat (limited to 'src/template/gnunet-template.c')
-rw-r--r-- | src/template/gnunet-template.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/template/gnunet-template.c b/src/template/gnunet-template.c index ec2c8f624..44dec992b 100644 --- a/src/template/gnunet-template.c +++ b/src/template/gnunet-template.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -63,21 +63,20 @@ main (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 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) |
68 | if (GNUNET_OK != | ||
69 | GNUNET_STRINGS_get_utf8_args (argc, argv, | ||
70 | &argc, &argv)) | ||
71 | return 2; | 68 | return 2; |
72 | 69 | ||
73 | ret = (GNUNET_OK == | 70 | ret = (GNUNET_OK == GNUNET_PROGRAM_run (argc, |
74 | GNUNET_PROGRAM_run (argc, argv, | 71 | argv, |
75 | "gnunet-template", | 72 | "gnunet-template", |
76 | gettext_noop ("help text"), | 73 | gettext_noop ("help text"), |
77 | options, | 74 | options, |
78 | &run, | 75 | &run, |
79 | NULL)) ? ret : 1; | 76 | NULL)) |
80 | GNUNET_free ((void*) argv); | 77 | ? ret |
78 | : 1; | ||
79 | GNUNET_free ((void *) argv); | ||
81 | return ret; | 80 | return ret; |
82 | } | 81 | } |
83 | 82 | ||