summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrad <>2008-05-11 05:03:03 +0000
committerbrad <>2008-05-11 05:03:03 +0000
commit420c0a4b82db84eb999f5d8ea7b33cc5c1515150 (patch)
treed3fde252beb71359b48ab17dca10026a123fd2b7
parent70f2e78de151241dd84c4cbd046c1ee44d674f20 (diff)
downloadopenbsd-420c0a4b82db84eb999f5d8ea7b33cc5c1515150.tar.gz
openbsd-420c0a4b82db84eb999f5d8ea7b33cc5c1515150.tar.bz2
openbsd-420c0a4b82db84eb999f5d8ea7b33cc5c1515150.zip
garbage collect the portability bits for the removed select() support.
ok djm@ deraadt@
-rw-r--r--src/lib/libc/net/res_send.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/lib/libc/net/res_send.c b/src/lib/libc/net/res_send.c
index 187210cbd8..09b1385892 100644
--- a/src/lib/libc/net/res_send.c
+++ b/src/lib/libc/net/res_send.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_send.c,v 1.20 2008/04/18 21:36:32 djm Exp $ */ 1/* $OpenBSD: res_send.c,v 1.21 2008/05/11 05:03:03 brad Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1985, 1989, 1993 4 * ++Copyright++ 1985, 1989, 1993
@@ -91,16 +91,6 @@ static int connected = 0; /* is the socket connected */
91static int vc = 0; /* is the socket a virtual ciruit? */ 91static int vc = 0; /* is the socket a virtual ciruit? */
92static int af = 0; /* address family of socket */ 92static int af = 0; /* address family of socket */
93 93
94#ifndef FD_SET
95/* XXX - should be in portability.h */
96#define NFDBITS 32
97#define FD_SETSIZE 32
98#define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
99#define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
100#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
101#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p)))
102#endif
103
104#define CAN_RECONNECT 1 94#define CAN_RECONNECT 1
105 95
106#ifndef DEBUG 96#ifndef DEBUG