WARNSify.
This commit is contained in:
parent
1b00c916a1
commit
43e09ab2db
@ -2,5 +2,6 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PROG= cat
|
PROG= cat
|
||||||
|
WARNS?= 2
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -77,7 +77,7 @@ static void cook_cat __P((FILE *));
|
|||||||
static void raw_cat __P((int));
|
static void raw_cat __P((int));
|
||||||
|
|
||||||
#ifndef NO_UDOM_SUPPORT
|
#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
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -148,7 +148,7 @@ scanfiles(argv, cooked)
|
|||||||
fd = open(path, O_RDONLY);
|
fd = open(path, O_RDONLY);
|
||||||
#ifndef NO_UDOM_SUPPORT
|
#ifndef NO_UDOM_SUPPORT
|
||||||
if (fd < 0 && errno == EOPNOTSUPP)
|
if (fd < 0 && errno == EOPNOTSUPP)
|
||||||
fd = udom_open(path, O_RDONLY, 0);
|
fd = udom_open(path, O_RDONLY);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
@ -272,10 +272,9 @@ raw_cat(rfd)
|
|||||||
#ifndef NO_UDOM_SUPPORT
|
#ifndef NO_UDOM_SUPPORT
|
||||||
|
|
||||||
static int
|
static int
|
||||||
udom_open(path, flags, modes)
|
udom_open(path, flags)
|
||||||
const char *path;
|
const char *path;
|
||||||
int flags;
|
int flags;
|
||||||
int modes;
|
|
||||||
{
|
{
|
||||||
struct sockaddr_un sou;
|
struct sockaddr_un sou;
|
||||||
int fd;
|
int fd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user