diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-07-20 05:52:00 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-07-20 05:52:00 +0000 |
commit | 2c61418d05e0ec9fbf4f24b64e5358bb53a14b73 (patch) | |
tree | a136a821ce94f8a58d0bf2f87298863e230757b0 /bin/cat/cat.c | |
parent | f9d9941f2dd1cd9a7f78425689b3bde78eefd54d (diff) | |
download | src-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.c | 4 |
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; |