aboutsummaryrefslogtreecommitdiff
path: root/src/auditordb/pg_get_refreshes_hanging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditordb/pg_get_refreshes_hanging.c')
-rw-r--r--src/auditordb/pg_get_refreshes_hanging.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/auditordb/pg_get_refreshes_hanging.c b/src/auditordb/pg_get_refreshes_hanging.c
index 6d86ae7a6..904df0a42 100644
--- a/src/auditordb/pg_get_refreshes_hanging.c
+++ b/src/auditordb/pg_get_refreshes_hanging.c
@@ -105,11 +105,13 @@ TAH_PG_get_refreshes_hanging (
void *cb_cls)
{
+ uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit);
+
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_uint64 (&offset),
GNUNET_PQ_query_param_bool (return_suppressed),
- GNUNET_PQ_query_param_int64 (&limit),
+ GNUNET_PQ_query_param_uint64 (&plimit),
GNUNET_PQ_query_param_end
};
struct RefreshesHangingContext dcc = {