summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2003-02-18 13:39:52 +0000
committernectar <nectar@FreeBSD.org>2003-02-18 13:39:52 +0000
commite369901c4d167440aa02ef1987950bb77fba23c1 (patch)
tree4afd9096ca162a7605b911ec3ce13112b78ae4c2 /lib/libc/net
parent6082d8705b68f88bdc0970a55dc6d70b772c9655 (diff)
downloadFreeBSD-src-e369901c4d167440aa02ef1987950bb77fba23c1.zip
FreeBSD-src-e369901c4d167440aa02ef1987950bb77fba23c1.tar.gz
Whack 28 unused variables.
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/ns_name.c2
-rw-r--r--lib/libc/net/ns_ttl.c2
-rw-r--r--lib/libc/net/rcmd.c3
-rw-r--r--lib/libc/net/res_debug.c2
-rw-r--r--lib/libc/net/res_mkupdate.c7
5 files changed, 7 insertions, 9 deletions
diff --git a/lib/libc/net/ns_name.c b/lib/libc/net/ns_name.c
index ae238b0..5422875 100644
--- a/lib/libc/net/ns_name.c
+++ b/lib/libc/net/ns_name.c
@@ -243,7 +243,7 @@ ns_name_unpack(const u_char *msg, const u_char *eom, const u_char *src,
{
const u_char *srcp, *dstlim;
u_char *dstp;
- int n, c, len, checked;
+ int n, len, checked;
len = -1;
checked = 0;
diff --git a/lib/libc/net/ns_ttl.c b/lib/libc/net/ns_ttl.c
index 1ad4caf..79083b2 100644
--- a/lib/libc/net/ns_ttl.c
+++ b/lib/libc/net/ns_ttl.c
@@ -43,7 +43,7 @@ int
ns_format_ttl(u_long src, char *dst, size_t dstlen) {
char *odst = dst;
int secs, mins, hours, days, weeks, x;
- char tmp[50], *p;
+ char *p;
secs = src % 60; src /= 60;
mins = src % 60; src /= 60;
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index fea3887..fcdd639 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -344,7 +344,7 @@ int
rresvport_af(alport, family)
int *alport, family;
{
- int i, s, len, err;
+ int s;
struct sockaddr_storage ss;
u_short *sport;
@@ -609,7 +609,6 @@ __ivaliduser_sa(hostf, raddr, salen, luser, ruser)
char hname[MAXHOSTNAMELEN];
/* Presumed guilty until proven innocent. */
int userok = 0, hostok = 0;
- int h_error;
#ifdef YP
char *ypdomain;
diff --git a/lib/libc/net/res_debug.c b/lib/libc/net/res_debug.c
index 22805ac..3481419 100644
--- a/lib/libc/net/res_debug.c
+++ b/lib/libc/net/res_debug.c
@@ -205,7 +205,7 @@ fp_query(const u_char *msg, FILE *file) {
void
fp_nquery(const u_char *msg, int len, FILE *file) {
ns_msg handle;
- int n, qdcount, ancount, nscount, arcount;
+ int qdcount, ancount, nscount, arcount;
u_int opcode, rcode, id;
if ((_res.options & RES_INIT) == 0 && res_init() == -1)
diff --git a/lib/libc/net/res_mkupdate.c b/lib/libc/net/res_mkupdate.c
index 6e0807d..6751338 100644
--- a/lib/libc/net/res_mkupdate.c
+++ b/lib/libc/net/res_mkupdate.c
@@ -62,9 +62,9 @@ int
res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) {
ns_updrec *rrecp_start = rrecp_in;
HEADER *hp;
- u_char c, *cp, *cp1, *sp1, *sp2, *startp, *endp;
- int n, i, j, found, soanum, multiline;
- ns_updrec *rrecp, *tmprrecp, *recptr = NULL;
+ u_char *cp, *sp1, *sp2, *startp, *endp;
+ int n, i, soanum, multiline;
+ ns_updrec *rrecp;
struct in_addr ina;
char buf2[MAXDNAME];
int section, numrrs = 0, counts[ns_s_max];
@@ -348,7 +348,6 @@ static int
getnum_str(u_char **startpp, u_char *endp) {
int c, n;
int seendigit = 0;
- int seendecimal = 0;
int m = 0;
for (n = 0; *startpp <= endp; ) {
OpenPOWER on IntegriCloud