aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-10-27 12:38:51 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-10-27 12:38:51 +0000
commit8a52fcaa55bc547321ef779c6e9bb1672dd83585 (patch)
treed818553fd22633d804a769db9e565718b977fc53 /src/datastore
parentabcc76b4f868ce6e8e8ff4b058c800ad1119474a (diff)
downloadgnunet-8a52fcaa55bc547321ef779c6e9bb1672dd83585.tar.gz
gnunet-8a52fcaa55bc547321ef779c6e9bb1672dd83585.zip
Diffstat (limited to 'src/datastore')
-rw-r--r--src/datastore/plugin_datastore_postgres.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index 248fe7a96..44a01fcb8 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -605,7 +605,7 @@ postgres_plugin_put (void *cls,
605 uint32_t btype = htonl (type); 605 uint32_t btype = htonl (type);
606 uint32_t bprio = htonl (priority); 606 uint32_t bprio = htonl (priority);
607 uint32_t banon = htonl (anonymity); 607 uint32_t banon = htonl (anonymity);
608 uint64_t bexpi = GNUNET_TIME_absolute_hton (expiration).value__; 608 uint64_t bexpi = GNUNET_TIME_absolute_hton (expiration).abs_value__;
609 const char *paramValues[] = { 609 const char *paramValues[] = {
610 (const char *) &btype, 610 (const char *) &btype,
611 (const char *) &bprio, 611 (const char *) &bprio,
@@ -886,7 +886,7 @@ postgres_plugin_update (void *cls,
886 PGresult *ret; 886 PGresult *ret;
887 int32_t bdelta = (int32_t) htonl ((uint32_t) delta); 887 int32_t bdelta = (int32_t) htonl ((uint32_t) delta);
888 uint32_t boid = htonl ( (uint32_t) uid); 888 uint32_t boid = htonl ( (uint32_t) uid);
889 uint64_t bexpire = GNUNET_TIME_absolute_hton (expire).value__; 889 uint64_t bexpire = GNUNET_TIME_absolute_hton (expire).abs_value__;
890 const char *paramValues[] = { 890 const char *paramValues[] = {
891 (const char *) &bdelta, 891 (const char *) &bdelta,
892 (const char *) &bexpire, 892 (const char *) &bexpire,
@@ -996,7 +996,7 @@ postgres_iterate (struct Plugin *plugin,
996 GNUNET_free (nrc); 996 GNUNET_free (nrc);
997 return; 997 return;
998 } 998 }
999 nrc->bnow = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ()).value__; 999 nrc->bnow = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ()).abs_value__;
1000 postgres_plugin_next_request (nrc, 1000 postgres_plugin_next_request (nrc,
1001 GNUNET_NO); 1001 GNUNET_NO);
1002} 1002}