diff options
author | tholo <> | 1997-04-30 05:54:44 +0000 |
---|---|---|
committer | tholo <> | 1997-04-30 05:54:44 +0000 |
commit | 37e5d720409522b387b468b7718497edd2b859a9 (patch) | |
tree | 2be5c80e0d52224921a079af73f79844830b69f5 | |
parent | ca9cab4620bc2b85a035583ff19c1b38bdb1165f (diff) | |
download | openbsd-37e5d720409522b387b468b7718497edd2b859a9.tar.gz openbsd-37e5d720409522b387b468b7718497edd2b859a9.tar.bz2 openbsd-37e5d720409522b387b468b7718497edd2b859a9.zip |
Remove unused variables
-rw-r--r-- | src/lib/libc/net/res_comp.c | 8 | ||||
-rw-r--r-- | src/lib/libc/net/res_debug.c | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/libc/net/res_comp.c b/src/lib/libc/net/res_comp.c index 86ff7e7657..030400d2a0 100644 --- a/src/lib/libc/net/res_comp.c +++ b/src/lib/libc/net/res_comp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: res_comp.c,v 1.6 1997/04/19 10:10:47 deraadt Exp $ */ | 1 | /* $OpenBSD: res_comp.c,v 1.7 1997/04/30 05:54:44 tholo Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1985, 1993 | 4 | * ++Copyright++ 1985, 1993 |
@@ -60,7 +60,7 @@ | |||
60 | static char sccsid[] = "@(#)res_comp.c 8.1 (Berkeley) 6/4/93"; | 60 | static char sccsid[] = "@(#)res_comp.c 8.1 (Berkeley) 6/4/93"; |
61 | static char rcsid[] = "$From: res_comp.c,v 8.11 1996/12/02 09:17:22 vixie Exp $"; | 61 | static char rcsid[] = "$From: res_comp.c,v 8.11 1996/12/02 09:17:22 vixie Exp $"; |
62 | #else | 62 | #else |
63 | static char rcsid[] = "$OpenBSD: res_comp.c,v 1.6 1997/04/19 10:10:47 deraadt Exp $"; | 63 | static char rcsid[] = "$OpenBSD: res_comp.c,v 1.7 1997/04/30 05:54:44 tholo Exp $"; |
64 | #endif | 64 | #endif |
65 | #endif /* LIBC_SCCS and not lint */ | 65 | #endif /* LIBC_SCCS and not lint */ |
66 | 66 | ||
@@ -368,7 +368,7 @@ int | |||
368 | res_hnok(dn) | 368 | res_hnok(dn) |
369 | const char *dn; | 369 | const char *dn; |
370 | { | 370 | { |
371 | int ppch = '\0', pch = PERIOD, ch = *dn++; | 371 | int pch = PERIOD, ch = *dn++; |
372 | 372 | ||
373 | while (ch != '\0') { | 373 | while (ch != '\0') { |
374 | int nch = *dn++; | 374 | int nch = *dn++; |
@@ -385,7 +385,7 @@ res_hnok(dn) | |||
385 | if (!middlechar(ch)) | 385 | if (!middlechar(ch)) |
386 | return (0); | 386 | return (0); |
387 | } | 387 | } |
388 | ppch = pch, pch = ch, ch = nch; | 388 | pch = ch, ch = nch; |
389 | } | 389 | } |
390 | return (1); | 390 | return (1); |
391 | } | 391 | } |
diff --git a/src/lib/libc/net/res_debug.c b/src/lib/libc/net/res_debug.c index 0b623a153c..f002e11d7d 100644 --- a/src/lib/libc/net/res_debug.c +++ b/src/lib/libc/net/res_debug.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: res_debug.c,v 1.6 1997/04/05 21:13:16 millert Exp $ */ | 1 | /* $OpenBSD: res_debug.c,v 1.7 1997/04/30 05:54:43 tholo Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1985, 1990, 1993 | 4 | * ++Copyright++ 1985, 1990, 1993 |
@@ -82,7 +82,7 @@ | |||
82 | static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; | 82 | static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; |
83 | static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $"; | 83 | static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $"; |
84 | #else | 84 | #else |
85 | static char rcsid[] = "$OpenBSD: res_debug.c,v 1.6 1997/04/05 21:13:16 millert Exp $"; | 85 | static char rcsid[] = "$OpenBSD: res_debug.c,v 1.7 1997/04/30 05:54:43 tholo Exp $"; |
86 | #endif | 86 | #endif |
87 | #endif /* LIBC_SCCS and not lint */ | 87 | #endif /* LIBC_SCCS and not lint */ |
88 | 88 | ||
@@ -1257,8 +1257,9 @@ loc_aton(ascii, binary) | |||
1257 | const char *ascii; | 1257 | const char *ascii; |
1258 | u_char *binary; | 1258 | u_char *binary; |
1259 | { | 1259 | { |
1260 | const char *cp, *maxcp; | 1260 | const char *maxcp; |
1261 | u_char *bcp; | 1261 | u_char *bcp; |
1262 | char *cp; | ||
1262 | 1263 | ||
1263 | u_int32_t latit = 0, longit = 0, alt = 0; | 1264 | u_int32_t latit = 0, longit = 0, alt = 0; |
1264 | u_int32_t lltemp1 = 0, lltemp2 = 0; | 1265 | u_int32_t lltemp1 = 0, lltemp2 = 0; |
@@ -1268,7 +1269,7 @@ loc_aton(ascii, binary) | |||
1268 | u_int8_t siz = 0x12; /* default = 1e2 cm = 1.00m */ | 1269 | u_int8_t siz = 0x12; /* default = 1e2 cm = 1.00m */ |
1269 | int which1 = 0, which2 = 0; | 1270 | int which1 = 0, which2 = 0; |
1270 | 1271 | ||
1271 | cp = ascii; | 1272 | cp = (char *)ascii; |
1272 | maxcp = cp + strlen(ascii); | 1273 | maxcp = cp + strlen(ascii); |
1273 | 1274 | ||
1274 | lltemp1 = latlon2ul(&cp, &which1); | 1275 | lltemp1 = latlon2ul(&cp, &which1); |