summaryrefslogtreecommitdiff
path: root/libgo/go/crypto/openpgp/canonical_text.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/crypto/openpgp/canonical_text.go')
-rw-r--r--libgo/go/crypto/openpgp/canonical_text.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/libgo/go/crypto/openpgp/canonical_text.go b/libgo/go/crypto/openpgp/canonical_text.go
index 293eff3542d..fe4557aafc1 100644
--- a/libgo/go/crypto/openpgp/canonical_text.go
+++ b/libgo/go/crypto/openpgp/canonical_text.go
@@ -4,10 +4,7 @@
package openpgp
-import (
- "hash"
- "os"
-)
+import "hash"
// NewCanonicalTextHash reformats text written to it into the canonical
// form and then applies the hash h. See RFC 4880, section 5.2.1.
@@ -22,7 +19,7 @@ type canonicalTextHash struct {
var newline = []byte{'\r', '\n'}
-func (cth *canonicalTextHash) Write(buf []byte) (int, os.Error) {
+func (cth *canonicalTextHash) Write(buf []byte) (int, error) {
start := 0
for i, c := range buf {