Skip to content
Snippets Groups Projects
Commit 9efd66ad authored by Adrien Béraud's avatar Adrien Béraud
Browse files

tools/c: use new api

parent 1134ff32
Branches
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ int main() ...@@ -88,7 +88,7 @@ int main()
// Put data // Put data
const char* data_str = "yo, this is some data"; const char* data_str = "yo, this is some data";
dht_value* val = dht_value_new(data_str, strlen(data_str)); dht_value* val = dht_value_new_from_string(data_str);
dht_runner_put(runner, &h, val, dht_done_callback, runner, false); dht_runner_put(runner, &h, val, dht_done_callback, runner, false);
dht_value_unref(val); dht_value_unref(val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment