[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 01/02: -avoid double next
From: |
gnunet |
Subject: |
[taler-exchange] 01/02: -avoid double next |
Date: |
Tue, 23 Aug 2022 14:36:07 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 624c5fda989e36df48537aac2a63c6ee80e350d4
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Aug 23 14:29:39 2022 +0200
-avoid double next
---
src/auditor/report-lib.c | 3 +++
src/auditor/test-auditor.sh | 3 ++-
src/exchange-tools/taler-exchange-offline.c | 11 ++++++++---
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/auditor/report-lib.c b/src/auditor/report-lib.c
index e4f66b31..248e14e1 100644
--- a/src/auditor/report-lib.c
+++ b/src/auditor/report-lib.c
@@ -588,6 +588,9 @@ TALER_ARL_init (const struct GNUNET_CONFIGURATION_Handle *c)
GNUNET_free (master_public_key_str);
return GNUNET_SYSERR;
}
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Running auditor against exchange master public key `%s'\n",
+ master_public_key_str);
GNUNET_free (master_public_key_str);
} /* end of -m not given */
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index f7c0948f..2e847564 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -211,7 +211,8 @@ function run_audit () {
pre_audit ${1:-no}
if test ${2:-no} = "drain"
then
- echo -n "Running taler-exchange-offline drain ..."
+ echo -n "Running taler-exchange-offline drain with master public key "
+ gnunet-ecc -p ${DB}.mpriv
cp "${CONF}" "${CONF}.tmp"
taler-config -c "${CONF}.tmp" -s exchange-offline -o MASTER_PRIV_FILE
-V ${DB}.mpriv
echo -n "Starting exchange..."
diff --git a/src/exchange-tools/taler-exchange-offline.c
b/src/exchange-tools/taler-exchange-offline.c
index a4413a24..839b8e22 100644
--- a/src/exchange-tools/taler-exchange-offline.c
+++ b/src/exchange-tools/taler-exchange-offline.c
@@ -4265,7 +4265,7 @@ do_extensions_show (char *const *args)
json_dumps (obj,
JSON_INDENT (2)));
json_decref (obj);
- next (args);
+ next (args + 1);
}
@@ -4326,10 +4326,16 @@ do_extensions_sign (char *const *args)
&sig));
output_operation (OP_EXTENSIONS,
obj);
- next (args);
+ next (args + 1);
}
+/**
+ * Dispatch @a args in the @a cmds array.
+ *
+ * @param args arguments with subcommand to dispatch
+ * @param cmds array of possible subcommands to call
+ */
static void
cmd_handler (char *const *args,
const struct SubCommand *cmds)
@@ -4397,7 +4403,6 @@ do_work_extensions (char *const *args)
}
cmd_handler (args, cmds);
- next (args + 1);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.