summaryrefslogtreecommitdiff
path: root/getloadavg.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2006-04-09 22:09:24 +0000
committerPaul Smith <psmith@gnu.org>2006-04-09 22:09:24 +0000
commit8b40defd1e1e486fd04d87c4b1a5ce233f145413 (patch)
tree3a3bed68bb3377d1a2a28ef8e1a56a269bc7b675 /getloadavg.c
parent21a5b2c58dc9198560f81895c24abd9b62aa058c (diff)
downloadmake-8b40defd1e1e486fd04d87c4b1a5ce233f145413.tar.gz
Another round of cleanups:
- Add more warnings. - Rename variables that mask out-scope vars with the same name. - Remove all casts of return values from xmalloc, xrealloc, and alloca. - Remove casts of the first argument to xrealloc. - Convert all bcopy/bzero/bcmp invocations to use memcp/memmove/memset/memcmp.
Diffstat (limited to 'getloadavg.c')
-rw-r--r--getloadavg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/getloadavg.c b/getloadavg.c
index 9367e473..2c291913 100644
--- a/getloadavg.c
+++ b/getloadavg.c
@@ -704,7 +704,7 @@ getloadavg (double loadavg[], int nelem)
for (i = 0; i < conf.config_maxclass; ++i)
{
struct class_stats stats;
- bzero ((char *) &stats, sizeof stats);
+ memset (&stats, '\0', sizeof stats);
desc.sd_type = CPUTYPE_CLASS;
desc.sd_objid = i;