X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Ftest_program.c;h=001f3aea19ea59880c6a479f5e4f20ddf9e72fe4;hb=6ede545d597509fefcc3d4fd2ef865bc5f57603f;hp=d206952af9ab1fb8a38b6926e3f1e8991a401f3a;hpb=03512957fb04969d08fb7eac0952a747aa9596ae;p=oweals%2Fgnunet.git diff --git a/src/util/test_program.c b/src/util/test_program.c index d206952af..001f3aea1 100644 --- a/src/util/test_program.c +++ b/src/util/test_program.c @@ -2,20 +2,18 @@ This file is part of GNUnet. Copyright (C) 2009 GNUnet e.V. - GNUnet is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3, or (at your - option) any later version. + GNUnet is free software: you can redistribute it and/or modify it + under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. GNUnet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with GNUnet; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. + Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . */ /** * @file util/test_program.c @@ -64,40 +62,40 @@ main (int argc, char *argv[]) NULL }; struct GNUNET_GETOPT_CommandLineOption options1[] = { - GNUNET_GETOPT_OPTION_SET_ONE ('n', + GNUNET_GETOPT_option_flag ('n', "name", "description", &setme1), GNUNET_GETOPT_OPTION_END }; struct GNUNET_GETOPT_CommandLineOption options2[] = { - GNUNET_GETOPT_OPTION_SET_ONE ('n', + GNUNET_GETOPT_option_flag ('n', "name", "description", &setme1), - GNUNET_GETOPT_OPTION_SET_ONE ('N', + GNUNET_GETOPT_option_flag ('N', "number", "description", &setme2), GNUNET_GETOPT_OPTION_END }; struct GNUNET_GETOPT_CommandLineOption options3[] = { - GNUNET_GETOPT_OPTION_SET_ONE ('N', + GNUNET_GETOPT_option_flag ('N', "number", "description", &setme1), - GNUNET_GETOPT_OPTION_SET_ONE ('n', + GNUNET_GETOPT_option_flag ('n', "name", "description", &setme2), GNUNET_GETOPT_OPTION_END }; struct GNUNET_GETOPT_CommandLineOption options4[] = { - GNUNET_GETOPT_OPTION_SET_ONE ('n', + GNUNET_GETOPT_option_flag ('n', "name", "description", &setme1), - GNUNET_GETOPT_OPTION_SET_ONE ('n', + GNUNET_GETOPT_option_flag ('n', "name", "description", &setme2),