Merge pull request #185 from yossigo/fix-c99-warning Fix compilation in non C99/C11 mode.
diff --git a/linenoise.c b/linenoise.c
index 01c3b93..ade4dea 100644
--- a/linenoise.c
+++ b/linenoise.c
@@ -598,7 +598,8 @@ static void refreshMultiLine(struct linenoiseState *l) {
/* Write the prompt and the current buffer content */
abAppend(&ab,l->prompt,strlen(l->prompt));
if (maskmode == 1) {
- for (uint i = 0; i < l->len; i++) abAppend(&ab,"*",1);
+ uint i;
+ for (i = 0; i < l->len; i++) abAppend(&ab,"*",1);
} else {
abAppend(&ab,l->buf,l->len);
}