aboutsummaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-exchange.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-29 23:56:46 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-29 23:56:46 +0200
commit0ef7c0a0b716785e7d1b0233e622d2e7267a0280 (patch)
treeff4b46d1182acd71fa5c6e29b9aaa786dbcf2b22 /src/auditor/taler-auditor-exchange.c
parent1b419adab48fc0fd915835e0d57c5923e515280c (diff)
fix #6960
Diffstat (limited to 'src/auditor/taler-auditor-exchange.c')
-rw-r--r--src/auditor/taler-auditor-exchange.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/auditor/taler-auditor-exchange.c b/src/auditor/taler-auditor-exchange.c
index e8e40ba59..b8b8428e7 100644
--- a/src/auditor/taler-auditor-exchange.c
+++ b/src/auditor/taler-auditor-exchange.c
@@ -99,9 +99,9 @@ main (int argc,
options,
argc, argv);
if (GNUNET_NO == ret)
- return 0;
+ return EXIT_SUCCESS;
if (GNUNET_SYSERR == ret)
- return 1;
+ return EXIT_INVALIDARGUMENT;
}
if (NULL == cfgfile)
cfgfile = GNUNET_strdup (GNUNET_OS_project_data_get ()->user_config_file);
@@ -119,7 +119,7 @@ main (int argc,
"Malformed configuration file `%s', exit ...\n",
cfgfile);
GNUNET_free (cfgfile);
- return 1;
+ return EXIT_NOTCONFIGURED;
}
GNUNET_free (cfgfile);
@@ -131,7 +131,7 @@ main (int argc,
_ ("Missing either `%s' or `%s'.\n"),
"-u URL",
"--remove");
- return 1;
+ return EXIT_INVALIDARGUMENT;
}
if ( (0 == strlen (exchange_url)) ||
( (0 != strncasecmp ("http://",
@@ -144,7 +144,7 @@ main (int argc,
{
fprintf (stderr,
"Exchange URL must begin with `http://` or `https://` and end with `/'\n");
- return 1;
+ return EXIT_INVALIDARGUMENT;
}
}
@@ -154,7 +154,7 @@ main (int argc,
{
fprintf (stderr,
"Failed to initialize auditor database plugin.\n");
- return 3;
+ return EXIT_NOTINSTALLED;
}
/* Create required tables */
@@ -164,7 +164,7 @@ main (int argc,
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to create tables in auditor's database\n");
TALER_AUDITORDB_plugin_unload (adb);
- return 3;
+ return EXIT_NOPERMISSION;
}
/* Update DB */
@@ -178,7 +178,7 @@ main (int argc,
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to initialize database session\n");
TALER_AUDITORDB_plugin_unload (adb);
- return 3;
+ return EXIT_FAILURE;
}
if (remove_flag)
@@ -200,7 +200,7 @@ main (int argc,
"Failed to update auditor database (status code: %d)\n",
qs);
TALER_AUDITORDB_plugin_unload (adb);
- return 3;
+ return EXIT_FAILURE;
}
if (0 == qs)
{
@@ -210,11 +210,11 @@ main (int argc,
? "Could not remove exchange from database: entry already absent\n"
: "Could not add exchange to database: entry already exists\n");
TALER_AUDITORDB_plugin_unload (adb);
- return 4;
+ return EXIT_FAILURE;
}
}
TALER_AUDITORDB_plugin_unload (adb);
- return 0;
+ return EXIT_SUCCESS;
}