diff options
author | Fournier Nicolas <nicolas.fournier@ensta-paristech.fr> | 2015-09-25 08:53:37 +0200 |
---|---|---|
committer | Fournier Nicolas <nicolas.fournier@ensta-paristech.fr> | 2015-09-25 08:53:37 +0200 |
commit | ecd663621997d98d22ae9bc340d717fc13bdcbfe (patch) | |
tree | 12495c73c2fbe6f208561591315fb742cdee0adf /src/mintdb/perf_taler_mintdb_interpreter.c | |
parent | 18d3c5efa546bf91719cc3df04e539bdc6b07292 (diff) |
fix interpreter warnings
Diffstat (limited to 'src/mintdb/perf_taler_mintdb_interpreter.c')
-rw-r--r-- | src/mintdb/perf_taler_mintdb_interpreter.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/mintdb/perf_taler_mintdb_interpreter.c b/src/mintdb/perf_taler_mintdb_interpreter.c index a814fbd67..31f5d6508 100644 --- a/src/mintdb/perf_taler_mintdb_interpreter.c +++ b/src/mintdb/perf_taler_mintdb_interpreter.c @@ -1757,13 +1757,27 @@ interpret (struct PERF_TALER_MINTDB_interpreter_state *state) case PERF_TALER_MINTDB_CMD_INSERT_REFRESH_COMMIT_LINK: { - int hash_index; - - hash_index = state->cmd[state->i].details.insert_refresh_commit_link.index_hash; +// unsigned int hash_index; +// +// hash_index = state->cmd[state->i].details.insert_refresh_commit_link.index_hash; } break; case PERF_TALER_MINTDB_CMD_GET_REFRESH_COMMIT_LINK: + { + int ret; + unsigned int hash_index; + struct TALER_MINTDB_RefreshCommitCoin commit_coin; + + hash_index = state->cmd[state->i].details.get_refresh_commit_link.index_hash; + ret = state->plugin->get_refresh_commit_coins(state->plugin->cls, + state->session, + state->cmd[hash_index].exposed.data.session_hash, + 1, + 1, + &commit_coin); + GNUNET_assert (GNUNET_SYSERR != ret); + } break; case PERF_TALER_MINTDB_CMD_GET_MELT_COMMITMENT: |