aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-09 17:33:04 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-09 17:33:04 +0200
commit8bb475af99260f1d107dbc8908268ae93960aa83 (patch)
tree1a7a1fc03424df841a6f977b137482439b09bc9f /src/gnsrecord
parent1f80a11e90ee982bffaae4685e281f75ee1c225d (diff)
downloadgnunet-8bb475af99260f1d107dbc8908268ae93960aa83.tar.gz
gnunet-8bb475af99260f1d107dbc8908268ae93960aa83.zip
implement new functions in libgnunetsq, clean up sqlite namestore plugin, implement flow control in namestore API and tests
Diffstat (limited to 'src/gnsrecord')
-rw-r--r--src/gnsrecord/gnsrecord_serialization.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gnsrecord/gnsrecord_serialization.c b/src/gnsrecord/gnsrecord_serialization.c
index 190f62fc2..3da24d72a 100644
--- a/src/gnsrecord/gnsrecord_serialization.c
+++ b/src/gnsrecord/gnsrecord_serialization.c
@@ -161,11 +161,10 @@ GNUNET_GNSRECORD_records_deserialize (size_t len,
161 struct GNUNET_GNSRECORD_Data *dest) 161 struct GNUNET_GNSRECORD_Data *dest)
162{ 162{
163 struct NetworkRecord rec; 163 struct NetworkRecord rec;
164 unsigned int i;
165 size_t off; 164 size_t off;
166 165
167 off = 0; 166 off = 0;
168 for (i=0;i<rd_count;i++) 167 for (unsigned int i=0;i<rd_count;i++)
169 { 168 {
170 if (off + sizeof (rec) > len) 169 if (off + sizeof (rec) > len)
171 return GNUNET_SYSERR; 170 return GNUNET_SYSERR;