fix recently introduced JSON pack format string errors

This commit is contained in:
Christian Grothoff 2016-10-19 00:14:34 +02:00
parent be055f1b92
commit 8fe6f64db3
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -587,9 +587,9 @@ TEH_RESPONSE_reply_deposit_insufficient_funds (struct MHD_Connection *connection
TALER_EC_DEPOSIT_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS); TALER_EC_DEPOSIT_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS);
return TEH_RESPONSE_reply_json_pack (connection, return TEH_RESPONSE_reply_json_pack (connection,
MHD_HTTP_FORBIDDEN, MHD_HTTP_FORBIDDEN,
"{s:s, s:o}", "{s:s, s:I, s:o}",
"error", "insufficient funds", "error", "insufficient funds",
"code", TALER_EC_DEPOSIT_INSUFFICIENT_FUNDS, "code", (json_int_t) TALER_EC_DEPOSIT_INSUFFICIENT_FUNDS,
"history", history); "history", history);
} }
@ -727,7 +727,7 @@ TEH_RESPONSE_reply_refund_conflict (struct MHD_Connection *connection,
MHD_HTTP_CONFLICT, MHD_HTTP_CONFLICT,
"{s:s, s:I, s:o}", "{s:s, s:I, s:o}",
"status", "conflicting refund", "status", "conflicting refund",
"code", TALER_EC_REFUND_CONFLICT, "code", (json_int_t) TALER_EC_REFUND_CONFLICT,
"history", compile_transaction_history (tl)); "history", compile_transaction_history (tl));
} }
@ -850,7 +850,7 @@ TEH_RESPONSE_reply_reserve_withdraw_insufficient_funds (struct MHD_Connection *c
MHD_HTTP_FORBIDDEN, MHD_HTTP_FORBIDDEN,
"{s:s, s:I, s:o, s:o}", "{s:s, s:I, s:o, s:o}",
"error", "Insufficient funds", "error", "Insufficient funds",
"code", TALER_EC_WITHDRAW_INSUFFICIENT_FUNDS, "code", (json_int_t) TALER_EC_WITHDRAW_INSUFFICIENT_FUNDS,
"balance", json_balance, "balance", json_balance,
"history", json_history); "history", json_history);
} }
@ -912,7 +912,7 @@ TEH_RESPONSE_reply_refresh_melt_insufficient_funds (struct MHD_Connection *conne
"error", "error",
"insufficient funds", "insufficient funds",
"code", "code",
TALER_EC_REFRESH_MELT_INSUFFICIENT_FUNDS, (json_int_t) TALER_EC_REFRESH_MELT_INSUFFICIENT_FUNDS,
"coin_pub", "coin_pub",
GNUNET_JSON_from_data_auto (coin_pub), GNUNET_JSON_from_data_auto (coin_pub),
"original_value", "original_value",
@ -1139,7 +1139,7 @@ TEH_RESPONSE_reply_transaction_unknown (struct MHD_Connection *connection,
MHD_HTTP_NOT_FOUND, MHD_HTTP_NOT_FOUND,
"{s:s, s:I}", "{s:s, s:I}",
"error", "Deposit unknown", "error", "Deposit unknown",
"code", ec); "code", (json_int_t) ec);
} }