mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-20 02:38:43 +00:00
Fix what was a common idiom in PDP-11 days: declare a local int and
use the address of that int for read(2). While this happens to work on LE, it surely is wrong on BE.
This commit is contained in:
parent
9ecbee467c
commit
82817dd82d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118214
@ -1140,8 +1140,8 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if ( ns ) {
|
||||
int c1;
|
||||
int nr;
|
||||
char c1;
|
||||
int nr;
|
||||
|
||||
nr = read ( fileno(stdin), &c1, 1 );
|
||||
c1 &= 0xff;
|
||||
|
Loading…
Reference in New Issue
Block a user