damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit d8b083010dd3fa707c94617fb4089838e4f42ee5
parent 887eb4e1e2148026d43cb2f66570d80aa14d0eb0
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 27 Dec 2023 12:41:52 -0800

nostrdb/cursor: fix some warnings

Signed-off-by: William Casarin <jb55@jb55.com>

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

diff --git a/nostrdb/src/cursor.h b/nostrdb/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);