X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Ftest_getopt.c;h=e5b854658153adef561a1b33b665ee0e0b106d5c;hb=6ede545d597509fefcc3d4fd2ef865bc5f57603f;hp=13cedd7f51786793c523ce7ad008fa71410c7b90;hpb=5b085881ab278a85c3ef3a1d91c58a5724a4e430;p=oweals%2Fgnunet.git diff --git a/src/util/test_getopt.c b/src/util/test_getopt.c index 13cedd7f5..e5b854658 100644 --- a/src/util/test_getopt.c +++ b/src/util/test_getopt.c @@ -2,20 +2,18 @@ This file is part of GNUnet. Copyright (C) 2003, 2004, 2005, 2006, 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_getopt.c @@ -56,7 +54,7 @@ testVerbose () unsigned int vflags = 0; const struct GNUNET_GETOPT_CommandLineOption verboseoptionlist[] = { - GNUNET_GETOPT_OPTION_VERBOSE (&vflags), + GNUNET_GETOPT_option_verbose (&vflags), GNUNET_GETOPT_OPTION_END }; @@ -83,7 +81,7 @@ testVersion () NULL }; const struct GNUNET_GETOPT_CommandLineOption versionoptionlist[] = { - GNUNET_GETOPT_OPTION_VERSION (PACKAGE_VERSION " " VCS_VERSION), + GNUNET_GETOPT_option_version (PACKAGE_VERSION " " VCS_VERSION), GNUNET_GETOPT_OPTION_END }; @@ -105,7 +103,7 @@ testAbout () NULL }; const struct GNUNET_GETOPT_CommandLineOption aboutoptionlist[] = { - GNUNET_GETOPT_OPTION_HELP ("Testing"), + GNUNET_GETOPT_option_help ("Testing"), GNUNET_GETOPT_OPTION_END }; @@ -131,8 +129,8 @@ testLogOpts () char *fn = NULL; const struct GNUNET_GETOPT_CommandLineOption logoptionlist[] = { - GNUNET_GETOPT_OPTION_LOGFILE (&fn), - GNUNET_GETOPT_OPTION_LOGLEVEL (&level), + GNUNET_GETOPT_option_logfile (&fn), + GNUNET_GETOPT_option_loglevel (&level), GNUNET_GETOPT_OPTION_END }; @@ -173,16 +171,16 @@ testFlagNum () unsigned long long lnum = 0; const struct GNUNET_GETOPT_CommandLineOption logoptionlist[] = { - GNUNET_GETOPT_OPTION_SET_ONE ('f', + GNUNET_GETOPT_option_flag ('f', "--flag", "helptext", &flag), - GNUNET_GETOPT_OPTION_SET_UINT ('n', + GNUNET_GETOPT_option_uint ('n', "--num", "ARG", "helptext", &num), - GNUNET_GETOPT_OPTION_SET_ULONG ('N', + GNUNET_GETOPT_option_ulong ('N', "--lnum", "ARG", "helptext",