From 3dda2dc8991b76bc31525d9766d659f8a803ef1f Mon Sep 17 00:00:00 2001 From: hakkadaikon Date: Sat, 2 Dec 2023 02:52:14 +0900 Subject: [PATCH] Delete unuse argument (destsize) --- hex.h | 2 +- nostrdb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hex.h b/hex.h index 88000a7..ce20ff4 100644 --- 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 index d973b67..2a8451f 100644 --- a/nostrdb.c +++ b/nostrdb.c @@ -3616,7 +3616,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);