From 5d094e6e2dec85d0aa13aa5693d2d40fa948bd06 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 14 Jun 2013 19:42:55 +0100 Subject: [PATCH] gofmt --- edns.go | 2 +- parse_test.go | 4 ++-- rawmsg.go | 4 ++-- server.go | 4 ++-- zscan_rr.go | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/edns.go b/edns.go index f134eb31..059b7633 100644 --- a/edns.go +++ b/edns.go @@ -5,7 +5,7 @@ // EDNS0 // // EDNS0 is an extension mechanism for the DNS defined in RFC 2671 and updated -// by RFC 6891. It defines a standard RR type, the OPT RR, which is then completely +// by RFC 6891. It defines a standard RR type, the OPT RR, which is then completely // abused. // Basic use pattern for creating an (empty) OPT RR: // diff --git a/parse_test.go b/parse_test.go index 61c1990b..2289fb02 100644 --- a/parse_test.go +++ b/parse_test.go @@ -729,8 +729,8 @@ func TestEUIxx(t *testing.T) { func TestUserRR(t *testing.T) { tests := map[string]string{ - "host.example. IN UID 1234": "host.example.\t3600\tIN\tUID\t1234", - "host.example. IN GID 1234556": "host.example.\t3600\tIN\tGID\t1234556", + "host.example. IN UID 1234": "host.example.\t3600\tIN\tUID\t1234", + "host.example. IN GID 1234556": "host.example.\t3600\tIN\tGID\t1234556", "host.example. IN UINFO \"Miek Gieben\"": "host.example.\t3600\tIN\tUINFO\t\"Miek Gieben\"", } for i, o := range tests { diff --git a/rawmsg.go b/rawmsg.go index 2a2b84cb..5aea358c 100644 --- a/rawmsg.go +++ b/rawmsg.go @@ -71,10 +71,10 @@ Loop: // End of the domainname break Loop } - if off+c>l { + if off+c > l { return false } - off +=c + off += c case 0xC0: // pointer, next byte included, ends domainname diff --git a/server.go b/server.go index e25af85f..721477f5 100644 --- a/server.go +++ b/server.go @@ -42,8 +42,8 @@ type response struct { tsigTimersOnly bool tsigRequestMAC string tsigSecret map[string]string // the tsig secrets - udp *net.UDPConn // i/o connection if UDP was used - tcp *net.TCPConn // i/o connection if TCP was used + udp *net.UDPConn // i/o connection if UDP was used + tcp *net.TCPConn // i/o connection if TCP was used remoteAddr net.Addr // address of the client } diff --git a/zscan_rr.go b/zscan_rr.go index d9899b4e..db4068b5 100644 --- a/zscan_rr.go +++ b/zscan_rr.go @@ -426,7 +426,7 @@ func setMINFO(h RR_Header, c chan lex, o, f string) (RR, *ParseError) { rr.Rmail = appendOrigin(rr.Rmail, o) } } - <-c // _BLANK + <-c // _BLANK l = <-c rr.Email = l.token if l.token == "@" {