summaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datastore/plugin_datastore_postgres.c')
-rw-r--r--src/datastore/plugin_datastore_postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index 3ec38c371..248fe7a96 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -767,12 +767,12 @@ postgres_next_request_cont (void *next_cls,
767 type = ntohl (*(uint32_t *) PQgetvalue (res, 0, 0)); 767 type = ntohl (*(uint32_t *) PQgetvalue (res, 0, 0));
768 priority = ntohl (*(uint32_t *) PQgetvalue (res, 0, 1)); 768 priority = ntohl (*(uint32_t *) PQgetvalue (res, 0, 1));
769 anonymity = ntohl ( *(uint32_t *) PQgetvalue (res, 0, 2)); 769 anonymity = ntohl ( *(uint32_t *) PQgetvalue (res, 0, 2));
770 expiration_time.value = GNUNET_ntohll (*(uint64_t *) PQgetvalue (res, 0, 3)); 770 expiration_time.abs_value = GNUNET_ntohll (*(uint64_t *) PQgetvalue (res, 0, 3));
771 memcpy (&key, PQgetvalue (res, 0, 4), sizeof (GNUNET_HashCode)); 771 memcpy (&key, PQgetvalue (res, 0, 4), sizeof (GNUNET_HashCode));
772 size = PQgetlength (res, 0, 5); 772 size = PQgetlength (res, 0, 5);
773 773
774 nrc->blast_prio = htonl (priority); 774 nrc->blast_prio = htonl (priority);
775 nrc->blast_expire = GNUNET_htonll (expiration_time.value); 775 nrc->blast_expire = GNUNET_htonll (expiration_time.abs_value);
776 nrc->blast_rowid = htonl (rowid); 776 nrc->blast_rowid = htonl (rowid);
777 nrc->count++; 777 nrc->count++;
778 778