diff --git a/include/libp2p/db/datastore.h b/include/libp2p/db/datastore.h index 6bc40a9..4846903 100644 --- a/include/libp2p/db/datastore.h +++ b/include/libp2p/db/datastore.h @@ -30,7 +30,7 @@ struct Datastore { // function pointers for datastore operations int (*datastore_open)(int argc, char** argv, struct Datastore* datastore); int (*datastore_close)(struct Datastore* datastore); - int (*datastore_put)(const unsigned char* key, size_t key_size, unsigned char* data, size_t data_length, const struct Datastore* datastore); + int (*datastore_put)(struct DatastoreRecord* record, const struct Datastore* datastore); int (*datastore_get)(const unsigned char* key, size_t key_size, struct DatastoreRecord** record, const struct Datastore* datastore); int (*datastore_cursor_open)(struct Datastore* datastore); int (*datastore_cursor_close)(struct Datastore* datastore); diff --git a/test/test_secio.h b/test/test_secio.h index d2a5630..52e2632 100644 --- a/test/test_secio.h +++ b/test/test_secio.h @@ -91,7 +91,7 @@ int test_secio_handshake() { // attempt to write the protocol, and see what comes back char* protocol = "/secio/1.0.0\n"; int protocol_size = strlen(protocol); - secure_session.insecure_stream->write(&secure_session, protocol, protocol_size); + secure_session.insecure_stream->write(&secure_session, (unsigned char*)protocol, protocol_size); unsigned char* buffer = NULL; size_t bytes_read = 0;