mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-03 13:59:27 -04:00
remove dead code
This commit is contained in:
parent
95625ae147
commit
6a528eaa09
1 changed files with 1 additions and 3 deletions
|
|
@ -240,13 +240,12 @@ locator_pton(const char *src, unsigned char *dst) {
|
|||
xdigits_u[] = "0123456789ABCDEF";
|
||||
unsigned char tmp[NS_LOCATORSZ];
|
||||
unsigned char *tp = tmp, *endp;
|
||||
const char *xdigits, *curtok;
|
||||
const char *xdigits;
|
||||
int ch, seen_xdigits;
|
||||
unsigned int val;
|
||||
|
||||
memset(tp, '\0', NS_LOCATORSZ);
|
||||
endp = tp + NS_LOCATORSZ;
|
||||
curtok = src;
|
||||
seen_xdigits = 0;
|
||||
val = 0;
|
||||
while ((ch = *src++) != '\0') {
|
||||
|
|
@ -263,7 +262,6 @@ locator_pton(const char *src, unsigned char *dst) {
|
|||
continue;
|
||||
}
|
||||
if (ch == ':') {
|
||||
curtok = src;
|
||||
if (!seen_xdigits)
|
||||
return (0);
|
||||
if (tp + NS_INT16SZ > endp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue