summaryrefslogtreecommitdiffstats
path: root/bin/cat
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-09-26 11:34:14 +0000
committerru <ru@FreeBSD.org>2001-09-26 11:34:14 +0000
commiteb7cee66862a48440043e201e01820b7a613af0b (patch)
treeb0092a59964ef1c5d4d109e2c430c7d77783bbbd /bin/cat
parente43023b2d0bbef29cace4600bceace83284edeaf (diff)
downloadFreeBSD-src-eb7cee66862a48440043e201e01820b7a613af0b.zip
FreeBSD-src-eb7cee66862a48440043e201e01820b7a613af0b.tar.gz
WARNSify.
Diffstat (limited to 'bin/cat')
-rw-r--r--bin/cat/Makefile1
-rw-r--r--bin/cat/cat.c7
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/cat/Makefile b/bin/cat/Makefile
index 672a4ee..5e2c746 100644
--- a/bin/cat/Makefile
+++ b/bin/cat/Makefile
@@ -2,5 +2,6 @@
# $FreeBSD$
PROG= cat
+WARNS?= 2
.include <bsd.prog.mk>
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index e7239c4..ad47516 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -77,7 +77,7 @@ static void cook_cat __P((FILE *));
static void raw_cat __P((int));
#ifndef NO_UDOM_SUPPORT
-static int udom_open __P((const char *path, int flags, int modes));
+static int udom_open __P((const char *path, int flags));
#endif
int
@@ -148,7 +148,7 @@ scanfiles(argv, cooked)
fd = open(path, O_RDONLY);
#ifndef NO_UDOM_SUPPORT
if (fd < 0 && errno == EOPNOTSUPP)
- fd = udom_open(path, O_RDONLY, 0);
+ fd = udom_open(path, O_RDONLY);
#endif
}
if (fd < 0) {
@@ -272,10 +272,9 @@ raw_cat(rfd)
#ifndef NO_UDOM_SUPPORT
static int
-udom_open(path, flags, modes)
+udom_open(path, flags)
const char *path;
int flags;
- int modes;
{
struct sockaddr_un sou;
int fd;
OpenPOWER on IntegriCloud