From d8b083010dd3fa707c94617fb4089838e4f42ee5 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 27 Dec 2023 12:41:52 -0800 Subject: [PATCH] nostrdb/cursor: fix some warnings Signed-off-by: William Casarin --- nostrdb/src/cursor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nostrdb/src/cursor.h b/nostrdb/src/cursor.h index 7cc449b3..91cb3071 100644 --- 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);