summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_init.c
diff options
context:
space:
mode:
authortholo <>1996-09-15 09:31:53 +0000
committertholo <>1996-09-15 09:31:53 +0000
commit27b62657a94b21845fcea14320c285cb5b1a2800 (patch)
tree947900ef381c1a838cf05f934ed5349615aac605 /src/lib/libc/net/res_init.c
parent5db356f3a7b6b461177c41660da527087e8d4399 (diff)
downloadopenbsd-27b62657a94b21845fcea14320c285cb5b1a2800.tar.gz
openbsd-27b62657a94b21845fcea14320c285cb5b1a2800.tar.bz2
openbsd-27b62657a94b21845fcea14320c285cb5b1a2800.zip
Remove dead code
Remove unused variables Silence some warnings lint(1) is your friend
Diffstat (limited to 'src/lib/libc/net/res_init.c')
-rw-r--r--src/lib/libc/net/res_init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libc/net/res_init.c b/src/lib/libc/net/res_init.c
index cb60d4c0df..355c9ce1b0 100644
--- a/src/lib/libc/net/res_init.c
+++ b/src/lib/libc/net/res_init.c
@@ -52,7 +52,7 @@
52 */ 52 */
53 53
54#if defined(LIBC_SCCS) && !defined(lint) 54#if defined(LIBC_SCCS) && !defined(lint)
55static char rcsid[] = "$OpenBSD: res_init.c,v 1.6 1996/08/27 03:32:53 deraadt Exp $"; 55static char rcsid[] = "$OpenBSD: res_init.c,v 1.7 1996/09/15 09:31:19 tholo Exp $";
56#endif /* LIBC_SCCS and not lint */ 56#endif /* LIBC_SCCS and not lint */
57 57
58#include <sys/param.h> 58#include <sys/param.h>
@@ -112,8 +112,6 @@ res_init()
112 int haveenv = 0; 112 int haveenv = 0;
113 int havesearch = 0; 113 int havesearch = 0;
114 int nsort = 0; 114 int nsort = 0;
115 int dots;
116 u_long mask;
117 115
118 _res.nsaddr.sin_len = sizeof(struct sockaddr_in); 116 _res.nsaddr.sin_len = sizeof(struct sockaddr_in);
119 _res.nsaddr.sin_family = AF_INET; 117 _res.nsaddr.sin_family = AF_INET;
@@ -344,6 +342,7 @@ res_init()
344 return (0); 342 return (0);
345} 343}
346 344
345/* ARGSUSED */
347static void 346static void
348res_setoptions(options, source) 347res_setoptions(options, source)
349 char *options, *source; 348 char *options, *source;