diff options
author | harti <harti@FreeBSD.org> | 2003-07-30 16:02:50 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-07-30 16:02:50 +0000 |
commit | 4a8d15f79632a7d599797522223b7c8b49a1ca07 (patch) | |
tree | 8f84ffb58462fd7b7ee3e443904b8b8fec65f03a /sbin/atm | |
parent | 6fb9d3d7f5c7b4fcf54b9d157070cc6209e52c39 (diff) | |
download | FreeBSD-src-4a8d15f79632a7d599797522223b7c8b49a1ca07.zip FreeBSD-src-4a8d15f79632a7d599797522223b7c8b49a1ca07.tar.gz |
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.
Diffstat (limited to 'sbin/atm')
-rw-r--r-- | sbin/atm/fore_dnld/fore_dnld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/atm/fore_dnld/fore_dnld.c b/sbin/atm/fore_dnld/fore_dnld.c index 3fe4c0e..f11cc36 100644 --- a/sbin/atm/fore_dnld/fore_dnld.c +++ b/sbin/atm/fore_dnld/fore_dnld.c @@ -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; |