nostrdb

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

commit ad5bcd87a47aebf003f56832ffdbb03eab275669
parent 7b878d6bf1c706b9c3960bb8cd702060f56b7a44
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 27 Dec 2023 12:41:52 -0800

cursor: fix some warnings

Diffstat:
Msrc/cursor.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cursor.h b/src/cursor.h @@ -470,8 +470,9 @@ static inline int pull_bytes(struct cursor *cur, int count, const unsigned char } static inline int parse_str(struct cursor *cur, const char *str) { + int i; char c, cs; - unsigned long i, len; + unsigned long len; len = strlen(str);