summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-01-04 08:11:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-01-04 08:11:54 +0000
commitdd6065b036b6de46156a3a024c27d2f9b4a04572 (patch)
treec5131ef502dc637b38425030610c9d8b4040cfea /sbin
parent5e3445082369aacff2200123ca31013d74b58e4d (diff)
use TCP_NODELAY; giannici@neomedia.it
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dump/dumprmt.c9
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