get filename instead of get_string, nicify some strings
This commit is contained in:
parent
8ebb4cda07
commit
e098dbf4dc
@ -78,7 +78,7 @@ auditor_sign_run (void *cls,
|
||||
}
|
||||
|
||||
if (GNUNET_OK !=
|
||||
GNUNET_CONFIGURATION_get_value_string (cfg,
|
||||
GNUNET_CONFIGURATION_get_value_filename (cfg,
|
||||
"paths",
|
||||
"TALER_TEST_HOME",
|
||||
&test_home_dir))
|
||||
|
@ -231,18 +231,16 @@ fakebank_transfer_run (void *cls,
|
||||
}
|
||||
|
||||
GNUNET_asprintf (§ion,
|
||||
"merchant-instance-%s",
|
||||
"instance-%s",
|
||||
fts->instance);
|
||||
if (GNUNET_OK !=
|
||||
GNUNET_CONFIGURATION_get_value_string
|
||||
(cfg,
|
||||
GNUNET_CONFIGURATION_get_value_filename (cfg,
|
||||
section,
|
||||
"TIP_RESERVE_PRIV_FILENAME",
|
||||
&keys))
|
||||
{
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||
"Configuration fails to specify reserve"
|
||||
" private key filename in section %s\n",
|
||||
"Configuration fails to specify reserve private key filename in section %s\n",
|
||||
section);
|
||||
GNUNET_free (section);
|
||||
TALER_TESTING_interpreter_fail (is);
|
||||
|
@ -127,7 +127,7 @@ TALER_TESTING_prepare_exchange (const char *config_filename,
|
||||
}
|
||||
|
||||
if (GNUNET_OK !=
|
||||
GNUNET_CONFIGURATION_get_value_string (cfg,
|
||||
GNUNET_CONFIGURATION_get_value_filename (cfg,
|
||||
"paths",
|
||||
"TALER_TEST_HOME",
|
||||
&test_home_dir))
|
||||
|
@ -472,13 +472,12 @@ parse_port_config (const char *section,
|
||||
if (GNUNET_OK !=
|
||||
GNUNET_CONFIGURATION_get_value_string (cfg,
|
||||
section,
|
||||
"unixpath_mode",
|
||||
"UNIXPATH_MODE",
|
||||
&modestring))
|
||||
{
|
||||
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
|
||||
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
|
||||
section,
|
||||
"unixpath_mode",
|
||||
"unixpath_mode required");
|
||||
"UNIXPATH_MODE");
|
||||
return GNUNET_SYSERR;
|
||||
}
|
||||
errno = 0;
|
||||
@ -487,8 +486,8 @@ parse_port_config (const char *section,
|
||||
{
|
||||
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
|
||||
section,
|
||||
"unixpath_mode",
|
||||
"unixpath_mode required");
|
||||
"UNIXPATH_MODE",
|
||||
"must be octal number");
|
||||
GNUNET_free (modestring);
|
||||
return GNUNET_SYSERR;
|
||||
}
|
||||
@ -526,7 +525,7 @@ exchange_serve_process_config ()
|
||||
if (GNUNET_OK !=
|
||||
GNUNET_CONFIGURATION_get_value_string (cfg,
|
||||
"taler",
|
||||
"currency",
|
||||
"CURRENCY",
|
||||
&TEH_exchange_currency_string))
|
||||
{
|
||||
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
|
||||
@ -545,7 +544,7 @@ exchange_serve_process_config ()
|
||||
if (GNUNET_OK !=
|
||||
GNUNET_CONFIGURATION_get_value_string (cfg,
|
||||
"exchange",
|
||||
"master_public_key",
|
||||
"MASTER_PUBLIC_KEY",
|
||||
&TEH_master_public_key_str))
|
||||
{
|
||||
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
|
||||
|
@ -265,12 +265,12 @@ exchange_serve_process_config ()
|
||||
if (GNUNET_OK !=
|
||||
GNUNET_CONFIGURATION_get_value_string (cfg,
|
||||
"taler",
|
||||
"currency",
|
||||
"CURRENCY",
|
||||
&exchange_currency_string))
|
||||
{
|
||||
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
|
||||
"taler",
|
||||
"currency");
|
||||
"CURRENCY");
|
||||
return GNUNET_SYSERR;
|
||||
}
|
||||
if (strlen (exchange_currency_string) >= TALER_CURRENCY_LEN)
|
||||
|
Loading…
Reference in New Issue
Block a user