Documentation tweaks

This commit is contained in:
Miek Gieben 2012-12-05 16:03:51 +01:00
parent c2ab7033c4
commit 9df1f9fb62
1 changed files with 2 additions and 4 deletions

View File

@ -497,8 +497,7 @@ func (node *ZoneData) Sign(next *ZoneData, keys map[*RR_DNSKEY]PrivateKey, keyta
defer node.Unlock() defer node.Unlock()
bitmap := make([]uint16, 0) bitmap := make([]uint16, 0)
r := false r, n := false, false
n := false
for t, _ := range node.RR { for t, _ := range node.RR {
if t == TypeRRSIG { if t == TypeRRSIG {
r = true r = true
@ -629,8 +628,7 @@ func jitterDuration(d time.Duration) time.Duration {
} }
// compareLabels behaves exactly as CompareLabels expect that l1 is already // compareLabels behaves exactly as CompareLabels expect that l1 is already
// a tokenize (in labels) version of the domain name. This safe memory and is // a tokenize (in labels) version of the domain name. This saves memory and is faster.
// faster
func compareLabelsSlice(l1 []string, s2 string) (n int) { func compareLabelsSlice(l1 []string, s2 string) (n int) {
l2 := SplitLabels(s2) l2 := SplitLabels(s2)