diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-25 16:23:59 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-25 16:23:59 +0000 |
commit | 6c402a3f0a1e6bd8f724e7d062166b3e6acb3cf8 (patch) | |
tree | 92dc55e6caaac535187193196a0c96ecdd8c4be9 | |
parent | 681972c908d6015e178bcb457096ba12199d2f29 (diff) |
Use PF_UNSPEC as proto in socketpair() instead of just 0 for clarity.
-rw-r--r-- | lib/libc/net/rcmdsh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/rcmdsh.c b/lib/libc/net/rcmdsh.c index b2130fd2338..93523a4c56c 100644 --- a/lib/libc/net/rcmdsh.c +++ b/lib/libc/net/rcmdsh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcmdsh.c,v 1.4 1997/07/23 16:59:37 millert Exp $ */ +/* $OpenBSD: rcmdsh.c,v 1.5 1998/04/25 16:23:58 millert Exp $ */ /* * This is an rcmd() replacement originally by @@ -6,7 +6,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: rcmdsh.c,v 1.4 1997/07/23 16:59:37 millert Exp $"; +static char *rcsid = "$OpenBSD: rcmdsh.c,v 1.5 1998/04/25 16:23:58 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -59,7 +59,7 @@ rcmdsh(ahost, rport, locuser, remuser, cmd, rshprog) } /* Get a socketpair we'll use for stdin and stdout. */ - if (socketpair(AF_UNIX, SOCK_STREAM, 0, sp) < 0) { + if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, sp) < 0) { perror("rcmdsh: socketpair"); return(-1); } |