summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1993-09-23 18:42:39 +0000
committerjtc <jtc@NetBSD.org>1993-09-23 18:42:39 +0000
commit59e456d7fd18d80c33cc49f6ec323325ff2ce0b7 (patch)
tree68cac1f99c4ee8fd497ad63e738d52188e7b5929 /libexec
parentac5c852d4b6fae1340afe46e818711b05e933187 (diff)
Make sure we use rstat's protocol's values of FSCALE. We were picking up
the FSCALE from sys/param.h which caused our load averages to be sent incorrectly to remote machines.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rpc.rstatd/rstat_proc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c
index bbb6407f7b4..5eda69f6439 100644
--- a/libexec/rpc.rstatd/rstat_proc.c
+++ b/libexec/rpc.rstatd/rstat_proc.c
@@ -29,7 +29,7 @@
#ifndef lint
/*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";*/
-static char rcsid[] = "$Id: rstat_proc.c,v 1.3 1993/08/01 18:29:47 mycroft Exp $";
+static char rcsid[] = "$Id: rstat_proc.c,v 1.4 1993/09/23 18:42:39 jtc Exp $";
#endif
/*
@@ -38,8 +38,10 @@ static char rcsid[] = "$Id: rstat_proc.c,v 1.3 1993/08/01 18:29:47 mycroft Exp $
* Copyright (c) 1984 by Sun Microsystems, Inc.
*/
-#include <signal.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <signal.h>
#include <rpc/rpc.h>
#include <sys/socket.h>
#include <nlist.h>
@@ -53,6 +55,9 @@ static char rcsid[] = "$Id: rstat_proc.c,v 1.3 1993/08/01 18:29:47 mycroft Exp $
#include <sys/dk.h>
#endif
#include <net/if.h>
+
+#undef FSHIFT /* Use protocol's shift and scale values */
+#undef FSCALE
#include <rpcsvc/rstat.h>
struct nlist nl[] = {