summaryrefslogtreecommitdiff
path: root/libps
diff options
context:
space:
mode:
Diffstat (limited to 'libps')
-rw-r--r--libps/procstat.c4
-rw-r--r--libps/spec.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/libps/procstat.c b/libps/procstat.c
index 0d4a565b..9f488cd6 100644
--- a/libps/procstat.c
+++ b/libps/procstat.c
@@ -361,7 +361,7 @@ summarize_thread_basic_info (struct procinfo *pi, ps_flags_t have)
if (!tbi)
return 0;
- bzero (tbi, sizeof *tbi);
+ memset (tbi, 0, sizeof *tbi);
for (i = 0; i < pi->nthreads; i++)
if (! pi->threadinfos[i].died
@@ -458,7 +458,7 @@ summarize_thread_sched_info (struct procinfo *pi)
if (!tsi)
return 0;
- bzero (tsi, sizeof *tsi);
+ memset (tsi, 0, sizeof *tsi);
for (i = 0; i < pi->nthreads; i++)
if (! pi->threadinfos[i].died
diff --git a/libps/spec.c b/libps/spec.c
index d645b825..d8188d6b 100644
--- a/libps/spec.c
+++ b/libps/spec.c
@@ -1036,7 +1036,7 @@ specs_add_alias (struct ps_fmt_specs *specs,
exp->nominal_fn = alias->nominal_fn ?: src->nominal_fn;
/* Now add the list-end marker. */
- bzero (exp + 1, sizeof (*exp));
+ memset (exp + 1, 0, sizeof(*exp));
return exp;
}