From 17de5c9d798109f55059190c886609ba377e4eb6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 30 Jun 2013 19:21:05 +0000 Subject: -towards implementing improved namestore API --- .../test_namestore_api_remove_not_existing_record.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/namestore/test_namestore_api_remove_not_existing_record.c') 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) { res = 0; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Removing non existing record for `%s'\n", name); - - struct GNUNET_NAMESTORE_RecordData rd; - char data[TEST_REMOVE_RECORD_DATALEN]; - - rd.expiration_time = GNUNET_TIME_absolute_get().abs_value; - rd.record_type = TEST_REMOVE_RECORD_TYPE; - rd.data_size = TEST_REMOVE_RECORD_DATALEN; - rd.data = &data; - - GNUNET_NAMESTORE_record_remove (nsh, privkey, name, &rd, &remove_cont, name); + GNUNET_NAMESTORE_record_put_by_authority (nsh, privkey, name, + 0, NULL, + &remove_cont, name); } else { -- cgit v1.2.3