X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Ftest_configuration.c;h=80ae01c683227dccd760149e1a679292d8ba167d;hb=a5361231e36224607d8c2c1376757c0b99f34f59;hp=e68740e7f60ba221acd41f91b2b0897b68b32ee5;hpb=61c39c60565b386e0e12ea669556b030e8cd7180;p=oweals%2Fgnunet.git diff --git a/src/util/test_configuration.c b/src/util/test_configuration.c index e68740e7f..80ae01c68 100644 --- a/src/util/test_configuration.c +++ b/src/util/test_configuration.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - (C) 2003, 2004, 2005, 2006, 2007 Christian Grothoff (and other contributing authors) + Copyright (C) 2003, 2004, 2005, 2006, 2007 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 @@ -14,8 +14,8 @@ 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., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ /** * @file util/test_configuration.c @@ -42,7 +42,7 @@ enum }; static struct GNUNET_CONFIGURATION_Handle *cfg; -static struct GNUNET_CONFIGURATION_Handle *cfgDefault; +static struct GNUNET_CONFIGURATION_Handle *cfg_default; struct DiffsCBData { @@ -199,7 +199,7 @@ editConfiguration (struct GNUNET_CONFIGURATION_Handle *cfg, int option) * Checking configuration diffs */ static int -checkDiffs (struct GNUNET_CONFIGURATION_Handle *cfgDefault, int option) +checkDiffs (struct GNUNET_CONFIGURATION_Handle *cfg_default, int option) { struct GNUNET_CONFIGURATION_Handle *cfg; struct GNUNET_CONFIGURATION_Handle *cfgDiffs; @@ -223,7 +223,7 @@ checkDiffs (struct GNUNET_CONFIGURATION_Handle *cfgDefault, int option) GNUNET_CONFIGURATION_destroy (cfgDiffs); return 1; } - GNUNET_CONFIGURATION_write_diffs (cfgDefault, cfg, diffsFileName); + GNUNET_CONFIGURATION_write_diffs (cfg_default, cfg, diffsFileName); GNUNET_CONFIGURATION_destroy (cfg); /* Compare the dumped configuration with modifications done */ @@ -514,30 +514,30 @@ main (int argc, char *argv[]) GNUNET_CONFIGURATION_destroy (cfg); /* Testing configuration diffs */ - cfgDefault = GNUNET_CONFIGURATION_create (); - if (GNUNET_OK != GNUNET_CONFIGURATION_load (cfgDefault, NULL)) + cfg_default = GNUNET_CONFIGURATION_create (); + if (GNUNET_OK != GNUNET_CONFIGURATION_load (cfg_default, NULL)) { GNUNET_break (0); - GNUNET_CONFIGURATION_destroy (cfgDefault); + GNUNET_CONFIGURATION_destroy (cfg_default); return 1; } /* Nothing changed in the new configuration */ - failureCount += checkDiffs (cfgDefault, EDIT_NOTHING); + failureCount += checkDiffs (cfg_default, EDIT_NOTHING); /* Modify all entries of the last section */ - failureCount += checkDiffs (cfgDefault, EDIT_SECTION); + failureCount += checkDiffs (cfg_default, EDIT_SECTION); /* Add a new section */ - failureCount += checkDiffs (cfgDefault, ADD_NEW_SECTION); + failureCount += checkDiffs (cfg_default, ADD_NEW_SECTION); /* Add a new entry to the last section */ - failureCount += checkDiffs (cfgDefault, ADD_NEW_ENTRY); + failureCount += checkDiffs (cfg_default, ADD_NEW_ENTRY); /* Modify all entries in the configuration */ - failureCount += checkDiffs (cfgDefault, EDIT_ALL); + failureCount += checkDiffs (cfg_default, EDIT_ALL); - GNUNET_CONFIGURATION_destroy (cfgDefault); + GNUNET_CONFIGURATION_destroy (cfg_default); error: if (failureCount != 0)