mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Fix warnings in resolver code
This commit is contained in:
parent
1a544854c2
commit
c75fa153a9
@ -1,3 +1,7 @@
|
||||
2011-07-05 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* resolv/res_comp.c (dn_skipname): Remove unused variable.
|
||||
|
||||
2011-07-06 Marek Polacek <mpolacek@redhat.com>
|
||||
|
||||
* nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
|
||||
|
@ -152,7 +152,7 @@ libresolv_hidden_def (dn_skipname)
|
||||
|
||||
int
|
||||
res_hnok(const char *dn) {
|
||||
int ppch = '\0', pch = PERIOD, ch = *dn++;
|
||||
int pch = PERIOD, ch = *dn++;
|
||||
|
||||
while (ch != '\0') {
|
||||
int nch = *dn++;
|
||||
@ -169,7 +169,7 @@ res_hnok(const char *dn) {
|
||||
if (!middlechar(ch))
|
||||
return (0);
|
||||
}
|
||||
ppch = pch, pch = ch, ch = nch;
|
||||
pch = ch, ch = nch;
|
||||
}
|
||||
return (1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user