diff options
| author | millert <> | 1998-04-25 16:23:58 +0000 |
|---|---|---|
| committer | millert <> | 1998-04-25 16:23:58 +0000 |
| commit | 7198566f07045d40bcfd0ed5dd3f669b41727d07 (patch) | |
| tree | a00ad75ea997b82f856ba193f1c342a5fe84b983 /src | |
| parent | 6c0a793d7dd7c3af17e9bc7c7029cc794b5d068d (diff) | |
| download | openbsd-7198566f07045d40bcfd0ed5dd3f669b41727d07.tar.gz openbsd-7198566f07045d40bcfd0ed5dd3f669b41727d07.tar.bz2 openbsd-7198566f07045d40bcfd0ed5dd3f669b41727d07.zip | |
Use PF_UNSPEC as proto in socketpair() instead of just 0 for clarity.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libc/net/rcmdsh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/rcmdsh.c b/src/lib/libc/net/rcmdsh.c index b2130fd233..93523a4c56 100644 --- a/src/lib/libc/net/rcmdsh.c +++ b/src/lib/libc/net/rcmdsh.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rcmdsh.c,v 1.4 1997/07/23 16:59:37 millert Exp $ */ | 1 | /* $OpenBSD: rcmdsh.c,v 1.5 1998/04/25 16:23:58 millert Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * This is an rcmd() replacement originally by | 4 | * This is an rcmd() replacement originally by |
| @@ -6,7 +6,7 @@ | |||
| 6 | */ | 6 | */ |
| 7 | 7 | ||
| 8 | #if defined(LIBC_SCCS) && !defined(lint) | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
| 9 | static char *rcsid = "$OpenBSD: rcmdsh.c,v 1.4 1997/07/23 16:59:37 millert Exp $"; | 9 | static char *rcsid = "$OpenBSD: rcmdsh.c,v 1.5 1998/04/25 16:23:58 millert Exp $"; |
| 10 | #endif /* LIBC_SCCS and not lint */ | 10 | #endif /* LIBC_SCCS and not lint */ |
| 11 | 11 | ||
| 12 | #include <sys/types.h> | 12 | #include <sys/types.h> |
| @@ -59,7 +59,7 @@ rcmdsh(ahost, rport, locuser, remuser, cmd, rshprog) | |||
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | /* Get a socketpair we'll use for stdin and stdout. */ | 61 | /* Get a socketpair we'll use for stdin and stdout. */ |
| 62 | if (socketpair(AF_UNIX, SOCK_STREAM, 0, sp) < 0) { | 62 | if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, sp) < 0) { |
| 63 | perror("rcmdsh: socketpair"); | 63 | perror("rcmdsh: socketpair"); |
| 64 | return(-1); | 64 | return(-1); |
| 65 | } | 65 | } |
