runtime: Remove now unnecessary pad field from ParFor.
It is not needed due to the removal of the ctx field. Reviewed-on: https://go-review.googlesource.com/16525 From-SVN: r229616
This commit is contained in:
parent
725e1be340
commit
af146490bb
1007 changed files with 86529 additions and 30520 deletions
|
@ -306,7 +306,23 @@ func (rr *dnsRR_TXT) Header() *dnsRR_Header {
|
|||
}
|
||||
|
||||
func (rr *dnsRR_TXT) Walk(f func(v interface{}, name, tag string) bool) bool {
|
||||
return rr.Hdr.Walk(f) && f(&rr.Txt, "Txt", "")
|
||||
if !rr.Hdr.Walk(f) {
|
||||
return false
|
||||
}
|
||||
var n uint16 = 0
|
||||
for n < rr.Hdr.Rdlength {
|
||||
var txt string
|
||||
if !f(&txt, "Txt", "") {
|
||||
return false
|
||||
}
|
||||
// more bytes than rr.Hdr.Rdlength said there woudld be
|
||||
if rr.Hdr.Rdlength-n < uint16(len(txt))+1 {
|
||||
return false
|
||||
}
|
||||
n += uint16(len(txt)) + 1
|
||||
rr.Txt += txt
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
type dnsRR_SRV struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue