From 4a8d15f79632a7d599797522223b7c8b49a1ca07 Mon Sep 17 00:00:00 2001 From: harti Date: Wed, 30 Jul 2003 16:02:50 +0000 Subject: 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. --- sbin/atm/fore_dnld/fore_dnld.c | 4 ++-- 1 file 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; -- cgit v1.1