Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmigan Casebolt committed Apr 10, 2011
1 parent 1709d02 commit 4a29efb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions serial_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func (e SError) String() string {
return e.msg
}

func OpenPort(name string, baud int) (f io.ReadWriteCloser, err os.Error) {
f, err = os.Open(name, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK, 0666)
func OpenPort(name string, baud int) (rwc io.ReadWriteCloser, err os.Error) {
f, err := os.Open(name, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK, 0666)
if err != nil {
return
}
Expand Down Expand Up @@ -96,5 +96,5 @@ func OpenPort(name string, baud int) (f io.ReadWriteCloser, err os.Error) {
}
*/

return
return f, nil
}

0 comments on commit 4a29efb

Please sign in to comment.