diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-05-25 00:40:12 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-05-25 00:40:12 -0500 |
| commit | bf4d3729e83b9a9e51497b73242fa9b394acbac1 (patch) | |
| tree | 6617253831536111e20188e18f2d98720641d2d3 | |
| parent | af27e17992062b13344af1f15ef1a8516807d83f (diff) | |
| download | rust-bf4d3729e83b9a9e51497b73242fa9b394acbac1.tar.gz rust-bf4d3729e83b9a9e51497b73242fa9b394acbac1.zip | |
Fix compilation errors with linenoise
| -rw-r--r-- | src/rt/linenoise/linenoise.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/linenoise/linenoise.c b/src/rt/linenoise/linenoise.c index 230711b5b8c..0ce4d559bed 100644 --- a/src/rt/linenoise/linenoise.c +++ b/src/rt/linenoise/linenoise.c @@ -395,7 +395,7 @@ static int countColorControlChars(const char* prompt, int plen) expect_inner, expect_trail } state = search_esc; - int len, found = 0; + int len = 0, found = 0; char ch; /* XXX: Strictly we should be checking utf8 chars rather than @@ -698,7 +698,7 @@ static int fd_read(struct current *current) return -1; } -static int countColorControlChars(char* prompt, int plen) +static int countColorControlChars(const char* prompt, int plen) { /* For windows we assume that there are no embedded ansi color * control sequences. |
