diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-01 17:51:46 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-01 17:51:46 +0100 |
commit | 113f3891d13a15b87827a8b1b33508231a1409b7 (patch) | |
tree | 8b665c481282b0d3778deee534fd2b36b992608c /src/pq/pq_query_helper.c | |
parent | c11475c081afcd5ccc667451b9383510fd42cf1b (diff) | |
download | exchange-113f3891d13a15b87827a8b1b33508231a1409b7.tar.xz |
removing dead code, using more named constants, checking return values better
Diffstat (limited to 'src/pq/pq_query_helper.c')
-rw-r--r-- | src/pq/pq_query_helper.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/pq/pq_query_helper.c b/src/pq/pq_query_helper.c index 3eef30079..f558cbccf 100644 --- a/src/pq/pq_query_helper.c +++ b/src/pq/pq_query_helper.c @@ -248,8 +248,6 @@ qconv_round_time (void *cls, GNUNET_assert (sizeof (struct GNUNET_TIME_AbsoluteNBO) == data_len); GNUNET_assert (scratch_length > 0); GNUNET_break (NULL == cls); - if (1 != param_length) - return -1; tmp = *at; GNUNET_assert (GNUNET_OK == GNUNET_TIME_round_abs (&tmp)); @@ -316,8 +314,6 @@ qconv_round_time_abs (void *cls, GNUNET_assert (1 == param_length); GNUNET_assert (sizeof (struct GNUNET_TIME_AbsoluteNBO) == data_len); GNUNET_break (NULL == cls); - if (1 != param_length) - return -1; tmp = GNUNET_TIME_absolute_ntoh (*at); GNUNET_assert (GNUNET_OK == GNUNET_TIME_round_abs (&tmp)); |