nostrdb/cursor: fix some warnings

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2023-12-27 12:41:52 -08:00
committed by Daniel D’Aquino
parent 887eb4e1e2
commit d8b083010d

View File

@@ -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) { static inline int parse_str(struct cursor *cur, const char *str) {
int i;
char c, cs; char c, cs;
unsigned long i, len; unsigned long len;
len = strlen(str); len = strlen(str);