diff options
Diffstat (limited to 'src/namestore/plugin_namestore_postgres.c')
-rw-r--r-- | src/namestore/plugin_namestore_postgres.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c index 64bfa631c..b62c306f3 100644 --- a/src/namestore/plugin_namestore_postgres.c +++ b/src/namestore/plugin_namestore_postgres.c | |||
@@ -311,7 +311,7 @@ namestore_postgres_put_records (void *cls, | |||
311 | } | 311 | } |
312 | { | 312 | { |
313 | char data[data_size]; | 313 | char data[data_size]; |
314 | uint64_t expire_be = GNUNET_htonll (expire.abs_value); | 314 | uint64_t expire_be = GNUNET_htonll (expire.abs_value_us); |
315 | uint64_t rvalue_be = GNUNET_htonll (rvalue); | 315 | uint64_t rvalue_be = GNUNET_htonll (rvalue); |
316 | uint32_t rd_count_be = htonl ((uint32_t) rd_count); | 316 | uint32_t rd_count_be = htonl ((uint32_t) rd_count); |
317 | const char *paramValues[] = { | 317 | const char *paramValues[] = { |
@@ -421,7 +421,7 @@ get_record_and_call_iterator (struct Plugin *plugin, | |||
421 | record_count = ntohl (*(uint32_t *) PQgetvalue (res, 0, 2)); | 421 | record_count = ntohl (*(uint32_t *) PQgetvalue (res, 0, 2)); |
422 | data_size = PQgetlength (res, 0, 3); | 422 | data_size = PQgetlength (res, 0, 3); |
423 | data = PQgetvalue (res, 0, 3); | 423 | data = PQgetvalue (res, 0, 3); |
424 | expiration.abs_value = | 424 | expiration.abs_value_us = |
425 | GNUNET_ntohll (*(uint64_t *) PQgetvalue (res, 0, 4)); | 425 | GNUNET_ntohll (*(uint64_t *) PQgetvalue (res, 0, 4)); |
426 | sig = (const struct GNUNET_CRYPTO_EccSignature*) PQgetvalue (res, 0, 5); | 426 | sig = (const struct GNUNET_CRYPTO_EccSignature*) PQgetvalue (res, 0, 5); |
427 | if (record_count > 64 * 1024) | 427 | if (record_count > 64 * 1024) |