summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/rcmdsh.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-04-25 16:23:58 +0000
committermillert <millert@openbsd.org>1998-04-25 16:23:58 +0000
commit2e7a57efc1c4433a20a44395e7d86eca87f7a706 (patch)
tree10b920fcf2103d9b3ccd8b8ead0ca0dc1cabb20d /lib/libc/net/rcmdsh.c
parentmain returns int, not void (diff)
downloadwireguard-openbsd-2e7a57efc1c4433a20a44395e7d86eca87f7a706.tar.xz
wireguard-openbsd-2e7a57efc1c4433a20a44395e7d86eca87f7a706.zip
Use PF_UNSPEC as proto in socketpair() instead of just 0 for clarity.
Diffstat (limited to 'lib/libc/net/rcmdsh.c')
-rw-r--r--lib/libc/net/rcmdsh.c6
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);
}