From 164861df2d9f054fc316a15581decf1c225f170f Mon Sep 17 00:00:00 2001 From: tjr Date: Tue, 20 Jul 2004 05:52:00 +0000 Subject: Use warn() instead of perror(). --- bin/ps/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ps') diff --git a/bin/ps/print.c b/bin/ps/print.c index 134ceb1..1870c53 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -785,7 +785,7 @@ label(KINFO *k, VARENT *ve) v = ve->var; string = NULL; if (mac_prepare_process_label(&proclabel) == -1) { - perror("mac_prepare_process_label"); + warn("mac_prepare_process_label"); goto out; } error = mac_get_pid(k->ki_p->ki_pid, proclabel); @@ -811,7 +811,7 @@ s_label(KINFO *k) int error, size = 0; if (mac_prepare_process_label(&proclabel) == -1) { - perror("mac_prepare_process_label"); + warn("mac_prepare_process_label"); return (0); } error = mac_get_pid(k->ki_p->ki_pid, proclabel); -- cgit v1.1