summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-09-16 21:33:14 +0000
committerdfr <dfr@FreeBSD.org>1998-09-16 21:33:14 +0000
commit0cc253cb742f8774ffa24e312a08bd949322ace5 (patch)
tree545e07162f587b1f611a7179b9c2114bc7f2bad5 /libexec
parent26cb0fc41368694469830003a12914f6ca7adbb8 (diff)
downloadFreeBSD-src-0cc253cb742f8774ffa24e312a08bd949322ace5.zip
FreeBSD-src-0cc253cb742f8774ffa24e312a08bd949322ace5.tar.gz
Work around an alpha compiler bug.
Reviewed by: Kenneth D. Merry <ken@plutotech.com>
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rpc.rstatd/rstat_proc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c
index 91d2e2a..ad902fb 100644
--- a/libexec/rpc.rstatd/rstat_proc.c
+++ b/libexec/rpc.rstatd/rstat_proc.c
@@ -33,7 +33,7 @@ static char sccsid[] = "from: @(#)rpc.rstatd.c 1.1 86/09/25 Copyr 1984 Sun Micro
static char sccsid[] = "from: @(#)rstat_proc.c 2.2 88/08/01 4.0 RPCSRC";
#endif
static const char rcsid[] =
- "$Id: rstat_proc.c,v 1.10 1998/01/19 23:13:19 wpaul Exp $";
+ "$Id: rstat_proc.c,v 1.11 1998/09/15 08:15:20 gibbs Exp $";
#endif
/*
@@ -373,7 +373,7 @@ void
updatexfers(numdevs, devs)
int numdevs, *devs;
{
- register int i, j;
+ register int i, j, t;
struct statinfo stats;
int num_devices = 0;
u_int64_t total_transfers;
@@ -416,9 +416,10 @@ updatexfers(numdevs, devs)
* architecture like the Alpha.
*/
if (total_transfers > INT_MAX)
- devs[j] = INT_MAX;
+ t = INT_MAX;
else
- devs[j] = total_transfers;
+ t = total_transfers;
+ devs[j] = t;
j++;
}
}
OpenPOWER on IntegriCloud