aboutsummaryrefslogtreecommitdiff
path: root/bin/cat/cat.c
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2004-07-20 05:52:00 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2004-07-20 05:52:00 +0000
commit2c61418d05e0ec9fbf4f24b64e5358bb53a14b73 (patch)
treea136a821ce94f8a58d0bf2f87298863e230757b0 /bin/cat/cat.c
parentf9d9941f2dd1cd9a7f78425689b3bde78eefd54d (diff)
downloadsrc-2c61418d05e0ec9fbf4f24b64e5358bb53a14b73.tar.gz
src-2c61418d05e0ec9fbf4f24b64e5358bb53a14b73.zip
Use warn() instead of perror().
Notes
Notes: svn path=/head/; revision=132433
Diffstat (limited to 'bin/cat/cat.c')
-rw-r--r--bin/cat/cat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index ffc9f3938882..8c433f14d596 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;