diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-02-06 17:33:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-02-06 17:33:40 +0000 |
commit | 85cc361c21c0e1e45d1f2c0fd2ce7c3ee1e2528c (patch) | |
tree | 26e0c875d6db9f2fa792c9703fcea532589e521f /src/namestore/plugin_namestore_postgres.c | |
parent | b7f29be97540eca5c2d5d2c7802849aec87e70c0 (diff) | |
download | gnunet-85cc361c21c0e1e45d1f2c0fd2ce7c3ee1e2528c.tar.gz gnunet-85cc361c21c0e1e45d1f2c0fd2ce7c3ee1e2528c.zip |
make some more use of libgnunetpq
Diffstat (limited to 'src/namestore/plugin_namestore_postgres.c')
-rw-r--r-- | src/namestore/plugin_namestore_postgres.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c index 599c7ef2e..9118ca5cf 100644 --- a/src/namestore/plugin_namestore_postgres.c +++ b/src/namestore/plugin_namestore_postgres.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * This file is part of GNUnet | 2 | * This file is part of GNUnet |
3 | * Copyright (C) 2009-2013 GNUnet e.V. | 3 | * Copyright (C) 2009-2013, 2016 GNUnet e.V. |
4 | * | 4 | * |
5 | * GNUnet is free software; you can redistribute it and/or modify | 5 | * GNUnet is free software; you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published | 6 | * it under the terms of the GNU General Public License as published |
@@ -28,6 +28,7 @@ | |||
28 | #include "gnunet_namestore_service.h" | 28 | #include "gnunet_namestore_service.h" |
29 | #include "gnunet_gnsrecord_lib.h" | 29 | #include "gnunet_gnsrecord_lib.h" |
30 | #include "gnunet_postgres_lib.h" | 30 | #include "gnunet_postgres_lib.h" |
31 | #include "gnunet_pq_lib.h" | ||
31 | #include "namestore.h" | 32 | #include "namestore.h" |
32 | 33 | ||
33 | 34 | ||
@@ -241,6 +242,7 @@ namestore_postgres_store_records (void *cls, | |||
241 | } | 242 | } |
242 | { | 243 | { |
243 | char data[data_size]; | 244 | char data[data_size]; |
245 | // FIXME: use libgnunetpq! | ||
244 | const char *paramValues[] = { | 246 | const char *paramValues[] = { |
245 | (const char *) zone_key, | 247 | (const char *) zone_key, |
246 | (const char *) &pkey, | 248 | (const char *) &pkey, |