summaryrefslogtreecommitdiff
path: root/src/lib/net/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/net/parse.go')
-rw-r--r--src/lib/net/parse.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/net/parse.go b/src/lib/net/parse.go
index e1f55f19a..e9aaf0630 100644
--- a/src/lib/net/parse.go
+++ b/src/lib/net/parse.go
@@ -55,12 +55,12 @@ func (f *file) readLine() (s string, ok bool) {
return
}
-func open(name string) *file {
+func open(name string) (*file, *os.Error) {
fd, err := os.Open(name, os.O_RDONLY, 0);
if err != nil {
- return nil
+ return nil, err;
}
- return &file{fd, make([]byte, 1024)[0:0]};
+ return &file{fd, make([]byte, 1024)[0:0]}, nil;
}
func byteIndex(s string, c byte) int {