summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/res_debug.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1997-04-30 05:54:43 +0000
committertholo <tholo@openbsd.org>1997-04-30 05:54:43 +0000
commit68e80a8b6587f928f19ac1664af69fdf32925254 (patch)
tree5308387a59e7c7aa1dfabaf0bb8d5d619d04291b /lib/libc/net/res_debug.c
parentBe specific about using unsigned values (diff)
downloadwireguard-openbsd-68e80a8b6587f928f19ac1664af69fdf32925254.tar.xz
wireguard-openbsd-68e80a8b6587f928f19ac1664af69fdf32925254.zip
Remove unused variables
Diffstat (limited to 'lib/libc/net/res_debug.c')
-rw-r--r--lib/libc/net/res_debug.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/net/res_debug.c b/lib/libc/net/res_debug.c
index 0b623a153c8..f002e11d7d2 100644
--- a/lib/libc/net/res_debug.c
+++ b/lib/libc/net/res_debug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_debug.c,v 1.6 1997/04/05 21:13:16 millert Exp $ */
+/* $OpenBSD: res_debug.c,v 1.7 1997/04/30 05:54:43 tholo Exp $ */
/*
* ++Copyright++ 1985, 1990, 1993
@@ -82,7 +82,7 @@
static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $";
#else
-static char rcsid[] = "$OpenBSD: res_debug.c,v 1.6 1997/04/05 21:13:16 millert Exp $";
+static char rcsid[] = "$OpenBSD: res_debug.c,v 1.7 1997/04/30 05:54:43 tholo Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -1257,8 +1257,9 @@ loc_aton(ascii, binary)
const char *ascii;
u_char *binary;
{
- const char *cp, *maxcp;
+ const char *maxcp;
u_char *bcp;
+ char *cp;
u_int32_t latit = 0, longit = 0, alt = 0;
u_int32_t lltemp1 = 0, lltemp2 = 0;
@@ -1268,7 +1269,7 @@ loc_aton(ascii, binary)
u_int8_t siz = 0x12; /* default = 1e2 cm = 1.00m */
int which1 = 0, which2 = 0;
- cp = ascii;
+ cp = (char *)ascii;
maxcp = cp + strlen(ascii);
lltemp1 = latlon2ul(&cp, &which1);