mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-04-24 14:53:34 +08:00
* ldlex.l: Use fread instead of read.
This commit is contained in:
parent
6f05cf9ffa
commit
968ec2b9ac
@ -1,3 +1,7 @@
|
||||
2002-01-21 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* ldlex.l: Use fread instead of read.
|
||||
|
||||
2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
|
||||
|
||||
* configure.tgt (ia64-*-netbsd*): New target.
|
||||
|
@ -1,7 +1,7 @@
|
||||
%{
|
||||
|
||||
/* Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
Free Software Foundation, Inc.
|
||||
/* Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GLD, the Gnu Linker.
|
||||
|
||||
@ -595,7 +595,7 @@ yy_input (buf, result, max_size)
|
||||
{
|
||||
if (yyin)
|
||||
{
|
||||
*result = read (fileno (yyin), (char *) buf, max_size);
|
||||
*result = fread ((char *) buf, 1, max_size, yyin);
|
||||
if (*result < 0)
|
||||
einfo ("%F%P: read in flex scanner failed\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user