summaryrefslogtreecommitdiff
path: root/src/pq/pq_result_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pq/pq_result_helper.c')
-rw-r--r--src/pq/pq_result_helper.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c
index 97710c43e..f6eab87e1 100644
--- a/src/pq/pq_result_helper.c
+++ b/src/pq/pq_result_helper.c
@@ -134,6 +134,11 @@ extract_amount_nbo (void *cls,
char *frac_name;
int ret;
+ if (sizeof (struct TALER_AmountNBO) != *dst_size)
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
GNUNET_asprintf (&val_name,
"%s_val",
fname);
@@ -205,6 +210,11 @@ extract_amount (void *cls,
struct TALER_AmountNBO amount_nbo;
int ret;
+ if (sizeof (struct TALER_AmountNBO) != *dst_size)
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
GNUNET_asprintf (&val_name,
"%s_val",
fname);
@@ -278,6 +288,8 @@ extract_json (void *cls,
json_error_t json_error;
size_t slen;
+ (void) cls;
+ (void) dst_size;
fnum = PQfnumber (result,
fname);
if (fnum < 0)
@@ -327,6 +339,7 @@ clean_json (void *cls,
{
json_t **dst = rd;
+ (void) cls;
if (NULL != *dst)
{
json_decref (*dst);
@@ -383,6 +396,7 @@ extract_round_time (void *cls,
struct GNUNET_TIME_Absolute tmp;
int fnum;
+ (void) cls;
fnum = PQfnumber (result,
fname);
if (fnum < 0)
@@ -465,6 +479,7 @@ extract_round_time_nbo (void *cls,
struct GNUNET_TIME_Absolute tmp;
int fnum;
+ (void) cls;
fnum = PQfnumber (result,
fname);
if (fnum < 0)