summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/cat/cat.c4
-rw-r--r--bin/ps/print.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index ffc9f39..8c433f1 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -298,11 +298,11 @@ udom_open(const char *path, int flags)
switch(flags & O_ACCMODE) {
case O_RDONLY:
if (shutdown(fd, SHUT_WR) == -1)
- perror("cat");
+ warn(NULL);
break;
case O_WRONLY:
if (shutdown(fd, SHUT_RD) == -1)
- perror("cat");
+ warn(NULL);
break;
default:
break;
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);
OpenPOWER on IntegriCloud