getc() returns an int, char is unsigned on some archs so can't hold EOF.

This commit is contained in:
Andrew Johnson
2001-10-25 16:13:35 +00:00
parent 321c609a68
commit d41fbcb532

View File

@@ -28,7 +28,7 @@
char * epicsShareAPI
epicsReadline (FILE *fp, const char *prompt)
{
char c;
int c; /* char is unsigned on some archs, EOF is -ve */
char *line = NULL;
int linelen = 0;
int linesize = 50;