diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-01-04 08:11:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-01-04 08:11:54 +0000 |
commit | dd6065b036b6de46156a3a024c27d2f9b4a04572 (patch) | |
tree | c5131ef502dc637b38425030610c9d8b4040cfea /sbin | |
parent | 5e3445082369aacff2200123ca31013d74b58e4d (diff) |
use TCP_NODELAY; giannici@neomedia.it
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dump/dumprmt.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sbin/dump/dumprmt.c b/sbin/dump/dumprmt.c index 833e61b9de5..48dda98ac63 100644 --- a/sbin/dump/dumprmt.c +++ b/sbin/dump/dumprmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dumprmt.c,v 1.11 1998/11/24 01:25:47 deraadt Exp $ */ +/* $OpenBSD: dumprmt.c,v 1.12 1999/01/04 08:11:53 deraadt Exp $ */ /* $NetBSD: dumprmt.c,v 1.17 1997/06/05 16:10:47 mrg Exp $ */ /*- @@ -123,9 +123,7 @@ rmtgetconn() register char *cp; static struct servent *sp = NULL; static struct passwd *pwd = NULL; -#ifdef notdef static int on = 1; -#endif char *tuser, *name; int size; int maxseg; @@ -168,10 +166,7 @@ rmtgetconn() (void)setsockopt(rmtape, IPPROTO_TCP, TCP_MAXSEG, &maxseg, sizeof(maxseg)); -#ifdef notdef - if (setsockopt(rmtape, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)) < 0) - perror("TCP_NODELAY setsockopt"); -#endif + (void) setsockopt(rmtape, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)); } static int |