Skip to content

Commit bf4d372

Browse files
committed
Fix compilation errors with linenoise
1 parent af27e17 commit bf4d372

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/linenoise/linenoise.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ static int countColorControlChars(const char* prompt, int plen)
395395
expect_inner,
396396
expect_trail
397397
} state = search_esc;
398-
int len, found = 0;
398+
int len = 0, found = 0;
399399
char ch;
400400

401401
/* XXX: Strictly we should be checking utf8 chars rather than
@@ -698,7 +698,7 @@ static int fd_read(struct current *current)
698698
return -1;
699699
}
700700

701-
static int countColorControlChars(char* prompt, int plen)
701+
static int countColorControlChars(const char* prompt, int plen)
702702
{
703703
/* For windows we assume that there are no embedded ansi color
704704
* control sequences.

0 commit comments

Comments
 (0)