trying to fix vs2012 and vs2010 builds

This commit is contained in:
Hinko Kocevar
2025-02-23 11:14:24 +01:00
committed by Andrew Johnson
parent a2be1c4f4f
commit b8e70783d8
2 changed files with 2 additions and 2 deletions

View File

@@ -63,6 +63,7 @@ epicsReadline (const char *prompt, void *context)
int c; /* char is unsigned on some archs, EOF is -ve */
int linelen = 0;
int linesize = 50;
int backslash_seen = 0;
if (rc->osd)
return osdReadline(prompt, rc);
@@ -81,7 +82,6 @@ epicsReadline (const char *prompt, void *context)
printf("Out of memory!\n");
return NULL;
}
int backslash_seen = 0;
do {
c = getc(in);
if (c == EOF) {

View File

@@ -74,6 +74,7 @@ osdReadline (const char *prompt, struct readlineContext *context)
int c; /* char is unsigned on some archs; EOF is -ve */
int linelen = 0;
int linesize = 50;
int backslash_seen = 0;
line = malloc(linesize);
if (line == NULL) {
@@ -84,7 +85,6 @@ osdReadline (const char *prompt, struct readlineContext *context)
fputs(prompt, stdout);
fflush(stdout);
}
int backslash_seen = 0;
do {
c = getc(context->in);
if (c == EOF) {