Skip to content
Permalink
Browse files

c binding: fix build

  • Loading branch information
aberaud committed Dec 16, 2019
1 parent 7094b79 commit abaf091772aa79801b3f1db723a2b6296797d3b2
Showing with 1 addition and 1 deletion.
  1. +1 −1 c/opendht.cpp
@@ -124,7 +124,7 @@ void dht_publickey_delete(dht_publickey* pk) {

int dht_publickey_export(const dht_publickey* pk, char* out, size_t* outlen) {
const auto& pkey = *reinterpret_cast<const PubkeySp*>(pk);
return pkey->pack(out, outlen);
return pkey->pack((uint8_t*)out, outlen);
}

dht_infohash dht_publickey_get_id(const dht_publickey* pk) {

0 comments on commit abaf091

Please sign in to comment.
You can’t perform that action at this time.