nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 5517c2bb2ca9ef613c3c3423088951cb76e973b0
parent a2dea7c49105540eb9d6101149c79bdb30ed1e8f
Author: hakkadaikon <hakkadaikon@yahoo.co.jp>
Date:   Sat,  2 Dec 2023 02:52:14 +0900

Delete unuse argument (destsize)

Closes: https://github.com/damus-io/nostrdb/pull/18
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mhex.h | 2+-
Mnostrdb.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hex.h b/hex.h @@ -50,7 +50,7 @@ static inline char hexchar(unsigned int val) abort(); } -static int hex_encode(const void *buf, size_t bufsize, char *dest, size_t destsize) +static int hex_encode(const void *buf, size_t bufsize, char *dest) { size_t i; diff --git a/nostrdb.c b/nostrdb.c @@ -3629,7 +3629,7 @@ static int ndb_event_commitment(struct ndb_note *ev, unsigned char *buf, int buf struct cursor cur; int ok; - if (!hex_encode(ev->pubkey, sizeof(ev->pubkey), pubkey, sizeof(pubkey))) + if (!hex_encode(ev->pubkey, sizeof(ev->pubkey), pubkey)) return 0; make_cursor(buf, buf + buflen, &cur);