aboutsummaryrefslogtreecommitdiff
path: root/iomt.h
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-12 21:05:12 +0000
committerFranklin Wei <me@fwei.tk>2018-07-12 21:05:12 +0000
commit82e04dce129ee618f11c7c0afc2efd88a3e3dea5 (patch)
treead3acddb6a73ec2bbf72507e1e7c278dc518ad34 /iomt.h
parent00e5cc796efc779288f7418eb7f7211e2b1023a7 (diff)
downloadcsaa-82e04dce129ee618f11c7c0afc2efd88a3e3dea5.zip
csaa-82e04dce129ee618f11c7c0afc2efd88a3e3dea5.tar.gz
csaa-82e04dce129ee618f11c7c0afc2efd88a3e3dea5.tar.bz2
csaa-82e04dce129ee618f11c7c0afc2efd88a3e3dea5.tar.xz
Make caller allocate memory in call to merkle_update()
Hopefully this is slightly faster... should probably profile.
Diffstat (limited to 'iomt.h')
-rw-r--r--iomt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iomt.h b/iomt.h
index 723ce6c..5a060a2 100644
--- a/iomt.h
+++ b/iomt.h
@@ -67,7 +67,7 @@ hash_t *merkle_complement(const struct iomt *tree, uint64_t leafidx, int **order
/* This function is prefixed merkle_ because it does not know about
* any IOMT-specific properties (though it is still passed an iomt
* struct) */
-void merkle_update(struct iomt *tree, uint64_t leafidx, hash_t newval, hash_t **old_dep);
+void merkle_update(struct iomt *tree, uint64_t leafidx, hash_t newval, hash_t *old_dep);
struct iomt *iomt_new(int logleaves);
struct iomt *iomt_new_from_db(void *db,