summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_comp.c
diff options
context:
space:
mode:
authortholo <>1997-04-30 05:54:44 +0000
committertholo <>1997-04-30 05:54:44 +0000
commit37e5d720409522b387b468b7718497edd2b859a9 (patch)
tree2be5c80e0d52224921a079af73f79844830b69f5 /src/lib/libc/net/res_comp.c
parentca9cab4620bc2b85a035583ff19c1b38bdb1165f (diff)
downloadopenbsd-37e5d720409522b387b468b7718497edd2b859a9.tar.gz
openbsd-37e5d720409522b387b468b7718497edd2b859a9.tar.bz2
openbsd-37e5d720409522b387b468b7718497edd2b859a9.zip
Remove unused variables
Diffstat (limited to 'src/lib/libc/net/res_comp.c')
-rw-r--r--src/lib/libc/net/res_comp.c8
1 files changed, 4 insertions, 4 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 @@
60static char sccsid[] = "@(#)res_comp.c 8.1 (Berkeley) 6/4/93"; 60static char sccsid[] = "@(#)res_comp.c 8.1 (Berkeley) 6/4/93";
61static char rcsid[] = "$From: res_comp.c,v 8.11 1996/12/02 09:17:22 vixie Exp $"; 61static char rcsid[] = "$From: res_comp.c,v 8.11 1996/12/02 09:17:22 vixie Exp $";
62#else 62#else
63static char rcsid[] = "$OpenBSD: res_comp.c,v 1.6 1997/04/19 10:10:47 deraadt Exp $"; 63static 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
368res_hnok(dn) 368res_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}