- use STD*_FILENO some more. No object-code changes
This commit is contained in:
@@ -1924,7 +1924,7 @@ static void identify_from_stdin(void)
|
||||
unsigned char *b = (unsigned char *)buf;
|
||||
int i;
|
||||
|
||||
xread(0, buf, 1280);
|
||||
xread(STDIN_FILENO, buf, 1280);
|
||||
|
||||
// Convert the newline-separated hex data into an identify block.
|
||||
|
||||
|
||||
@@ -273,7 +273,7 @@ static void read_lines(void)
|
||||
/* if no unprocessed chars left, eat more */
|
||||
if (readpos >= readeof) {
|
||||
ndelay_on(0);
|
||||
eof_error = safe_read(0, readbuf, sizeof(readbuf));
|
||||
eof_error = safe_read(STDIN_FILENO, readbuf, sizeof(readbuf));
|
||||
ndelay_off(0);
|
||||
readpos = 0;
|
||||
readeof = eof_error;
|
||||
|
||||
Reference in New Issue
Block a user