aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_remove_not_existing_record.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-06-30 19:21:05 +0000
committerChristian Grothoff <christian@grothoff.org>2013-06-30 19:21:05 +0000
commit17de5c9d798109f55059190c886609ba377e4eb6 (patch)
tree07f2b4241f433b18baf02d5bf189307ad2308166 /src/namestore/test_namestore_api_remove_not_existing_record.c
parentfd87b25438487e1215c68bdb9f1bcac2d7012bc2 (diff)
downloadgnunet-17de5c9d798109f55059190c886609ba377e4eb6.tar.gz
gnunet-17de5c9d798109f55059190c886609ba377e4eb6.zip
-towards implementing improved namestore API
Diffstat (limited to 'src/namestore/test_namestore_api_remove_not_existing_record.c')
-rw-r--r--src/namestore/test_namestore_api_remove_not_existing_record.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c
index 16586240a..c31ea8d0b 100644
--- a/src/namestore/test_namestore_api_remove_not_existing_record.c
+++ b/src/namestore/test_namestore_api_remove_not_existing_record.c
@@ -136,16 +136,9 @@ put_cont (void *cls, int32_t success, const char *emsg)
136 { 136 {
137 res = 0; 137 res = 0;
138 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Removing non existing record for `%s'\n", name); 138 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Removing non existing record for `%s'\n", name);
139 139 GNUNET_NAMESTORE_record_put_by_authority (nsh, privkey, name,
140 struct GNUNET_NAMESTORE_RecordData rd; 140 0, NULL,
141 char data[TEST_REMOVE_RECORD_DATALEN]; 141 &remove_cont, name);
142
143 rd.expiration_time = GNUNET_TIME_absolute_get().abs_value;
144 rd.record_type = TEST_REMOVE_RECORD_TYPE;
145 rd.data_size = TEST_REMOVE_RECORD_DATALEN;
146 rd.data = &data;
147
148 GNUNET_NAMESTORE_record_remove (nsh, privkey, name, &rd, &remove_cont, name);
149 } 142 }
150 else 143 else
151 { 144 {