summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-11-03 20:07:14 +1100
committerDarren Tucker <dtucker@zip.com.au>2003-11-03 20:07:14 +1100
commit6db8f936aed10e9aca2cf37126264c12e2021cb0 (patch)
tree16cb146a47d776f2b457739f87fca001f6786735 /misc.c
parent56afe145e0c77f3447cf2098a4601289bd1c7ef1 (diff)
- markus@cvs.openbsd.org 2003/10/28 09:08:06
[misc.c] error->debug for getsockopt+TCP_NODELAY; several requests
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index ac616de02..1f320353e 100644
--- a/misc.c
+++ b/misc.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: misc.c,v 1.22 2003/09/18 08:49:45 markus Exp $"); 26RCSID("$OpenBSD: misc.c,v 1.23 2003/10/28 09:08:06 markus Exp $");
27 27
28#include "misc.h" 28#include "misc.h"
29#include "log.h" 29#include "log.h"
@@ -97,7 +97,7 @@ set_nodelay(int fd)
97 97
98 optlen = sizeof opt; 98 optlen = sizeof opt;
99 if (getsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, &optlen) == -1) { 99 if (getsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, &optlen) == -1) {
100 error("getsockopt TCP_NODELAY: %.100s", strerror(errno)); 100 debug("getsockopt TCP_NODELAY: %.100s", strerror(errno));
101 return; 101 return;
102 } 102 }
103 if (opt == 1) { 103 if (opt == 1) {