diff options
Diffstat (limited to 'src/lib/libc/net/res_comp.c')
-rw-r--r-- | src/lib/libc/net/res_comp.c | 8 |
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 @@ | |||
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 | } |